CodeCharge Studio
search Register Login  

Visual Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 Send an email

Print topic Send  topic

Author Message
Waspman

Posts: 948
Posted: 09/21/2007, 6:00 AM

Only been using PHP for a week so...


can anyone tell me why I get "unexpected T_VARIABLE" from this code generated by CCS

global $users;
$to = $Component->Email->GetText();
$subject = "You have registered"
$message= $Container->EmailBodyHolder->GetText();
$from = "email@address.com"
$additional_headers = "From: $from\nReply-To: $from\nContent-Type: text/html";
mail ($to, $subject, $message, $additional_headers);


Thanks in advance...


Tony
_________________
http://www.waspmedia.co.uk
View profile  Send private message
YourPHPPro

Posts: 2
Posted: 09/21/2007, 6:41 AM

Quote Waspman:
$subject = "You have registered"

That should be:

Quote :
$subject = "You have registered" ;

The other error(s) are the same fix...
_________________
---
Your PHP Pro.com
View profile  Send private message
lvalverdeb

Posts: 299
Posted: 09/21/2007, 6:41 AM

I believe it is because you're missing the semi colon at the end of $subject and $from

Luis



_________________
lvalverdeb
CR, GMT-6
XAMPP/Ubuntu/CCS3.2/4
View profile  Send private message
Waspman

Posts: 948
Posted: 09/21/2007, 7:29 AM

8-)Thanks guys
_________________
http://www.waspmedia.co.uk
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

Internet Database

Visually create Web enabled database applications in minutes.
CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.