PDA

View Full Version : Can someone check my code?



my3brs
September 2nd, 2004, 02:48 AM
<?php
$sitename = $_GET['sitename'];
$email = $_GET['email'];
$linkbackimage = $_GET['image'];
$url = $_GET['url'];
$subject = "Thank You for Applying"

$message['1'] = "<div align=\"center\">Dear Brandon,</div><br>We'd like to inform U that u have a person waiting to be approved for affiliation. The sitename is $sitename and the email is $email. The image that would like to be displayed is $linkbackimage and the link is $url. Please notify if you approved this affiliate or not.";
$message['2'] = "<div align=\"center\">Dear $sitename</div><br> Thank you Applying to be an affiliate for extremedegrassi.com. We will be approving your site shortly. Make sure you have one of our linkbacks on your website for that is what we will check to apply you.<br><br>Thanks for your support,<br>The staff at Extreme Degrassi.com<br>Please do not reply to this message if you have any further questions email or3n@degrassiboards.com or babolo@degrassiboards.com";

mail("babolo@extremedegrassi.com", $subject, $message['1'],
"From: webmaster@{$_SERVER['SERVER_NAME']}\r\n" .
"Reply-To: babolo@{$_SERVER['SERVER_NAME']}\r\n" .
"X-Mailer: PHP/" . phpversion());

mail($email, $subject, $message['2'],
"From: webmaster@{$_SERVER['SERVER_NAME']}\r\n" .
"Reply-To: babolo@{$_SERVER['SERVER_NAME']}\r\n" .
"X-Mailer: PHP/" . phpversion());
?>
I keep getting errors on lines 8 and nine really need help

my3brs
September 2nd, 2004, 02:48 AM
unexpected T_VARIABLE for both lines

Hans Kilian
September 2nd, 2004, 12:45 PM
I think you need a semicolon at the end of line 6.

Digitalosophy
September 2nd, 2004, 12:53 PM
$subject = "Thank You for Applying"


needs a ; as hans has already said.

my3brs
September 2nd, 2004, 02:25 PM
Thanks!!!

Digitalosophy
September 2nd, 2004, 02:27 PM
your welcome