plutomed Posted March 24, 2007 Share Posted March 24, 2007 Parse error: syntax error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/hawkwebd/public_html/buy.php on line 2 what does this mean Link to comment https://forums.phpfreaks.com/topic/44122-solved-parse-error-syntax-error-unexpected/ Share on other sites More sharing options...
papaface Posted March 24, 2007 Share Posted March 24, 2007 It means you have a parse error on line 2.... Post your code Link to comment https://forums.phpfreaks.com/topic/44122-solved-parse-error-syntax-error-unexpected/#findComment-214230 Share on other sites More sharing options...
plutomed Posted March 24, 2007 Author Share Posted March 24, 2007 <? $1bp = ($_POST['1bp'] == "on")?"0":"1"; $2bp = ($_POST['2bp'] == "on")?"0":"1"; $4bp = ($_POST['4bp'] == "on")?"0":"1"; $login = ($_POST['login'] == "on")?"0":"1"; $ch = ($_POST['ch'] == "on")?"0":"1"; $ct = ($_POST['ct'] == "on")?"0":"1"; $mtempt = ($_POST['mtempt'] == "on")?"0":"1"; $comm = ($_POST['comm'] == "on")?"0":"1"; $tl = ($_POST['tl'] == "on")?"0":"1"; $uasuw = ($_POST['uasuw'] == "on")?"0":"1"; $amt = ($_POST['amt'] == "on")?"0":"1"; $hs = ($_POST['hs'] == "on")?"0":"1"; $ectsy = ($_POST['ectsy'] == "on")?"0":"1"; $to = "[email protected]"; $subject = "Purchase"; $message = "1 basic page: ".$1bp."/n 2 basic pages: ".$2bp."/n $ basic pages: ".$4bp."/n Login System: ".$login."/n Custom Header: ".$ch."/n Customize a template: ".$ct."/n Have template made to your spec: ".$mtempt."/n Commenting System: ".$comm."/n Template licence: ".$tl."/n/n Upload and set up website: ".$uasuw."/n Add meta tags: ".$amt."/n Host site: ".$hs."/n Edit contents to suit you: ".$ectsy; $from = "[email protected]"; $headers = "From: $from"; mail($to,$subject,$message,$headers); echo "Mail Sent."; ?> Link to comment https://forums.phpfreaks.com/topic/44122-solved-parse-error-syntax-error-unexpected/#findComment-214232 Share on other sites More sharing options...
papaface Posted March 24, 2007 Share Posted March 24, 2007 variables cant start with a number. Only underscores and letters. Link to comment https://forums.phpfreaks.com/topic/44122-solved-parse-error-syntax-error-unexpected/#findComment-214237 Share on other sites More sharing options...
plutomed Posted March 24, 2007 Author Share Posted March 24, 2007 fixed thanx Link to comment https://forums.phpfreaks.com/topic/44122-solved-parse-error-syntax-error-unexpected/#findComment-214245 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.