Page 1 of 1

[SOLVED] Code not excuting

Posted: Sun Feb 06, 2005 3:20 pm
by anthony88guy

Code: Select all

<?
$to = $_POST&#1111;'email'];
$subject = $_POST&#1111;'subject'];
$message = $_POST&#1111;'message'];
$num = $_POST&#1111;'num'];
$i = 1;

LINE 08 while($1 < $num)
&#123;
mail($to, $subject, $message);
$i++;
&#125;

header("location:http://www.nokidding.websiteallies.com");
?>
My freind wanted me to make this, so i thought it would be cool, i get this error

Parse error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/nokiddin/public_html/php/spam.php on line 8

i'm not eally sure what wrong.

Posted: Sun Feb 06, 2005 3:23 pm
by feyd
$1 isn't a valid variable.

Posted: Sun Feb 06, 2005 3:26 pm
by anthony88guy
thxs i see what i did