[SOLVED] Code not excuting

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
anthony88guy
Forum Contributor
Posts: 246
Joined: Thu Jan 20, 2005 8:22 pm

[SOLVED] Code not excuting

Post 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.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

$1 isn't a valid variable.
anthony88guy
Forum Contributor
Posts: 246
Joined: Thu Jan 20, 2005 8:22 pm

Post by anthony88guy »

thxs i see what i did
Post Reply