xtops Posted September 30, 2009 Share Posted September 30, 2009 Parse error: syntax error, unexpected $end in /var/www/borderMaker.php on line 3 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html lang="en"> <head> <title>Your Output</title> </head> <body> <h1>Your output</h1> <center> <?php //$borderSize = $_REQUEST["borderSize"]; //$sizeType = $_REQUEST["sizeType"]; //$borderStyle = $_REQUEST["borderStyle"]; $theStyle = <<<HERE "border-width:$borderSize $sizeType; border-style: $borderStyle; border-color: green" HERE; print "<div style = $theStyle>"; print $basicText; print "</span>"; ?> </center> </body> </html> Quote Link to comment https://forums.phpfreaks.com/topic/176006-solved-how-to-fix-this-error-parse-error-syntax-error-unexpected-end/ Share on other sites More sharing options...
trq Posted September 30, 2009 Share Posted September 30, 2009 The ending HERE; cannot be indented. Quote Link to comment https://forums.phpfreaks.com/topic/176006-solved-how-to-fix-this-error-parse-error-syntax-error-unexpected-end/#findComment-927413 Share on other sites More sharing options...
xtops Posted September 30, 2009 Author Share Posted September 30, 2009 WHAT DO YOU MEAN SIR I DONT GET IT Quote Link to comment https://forums.phpfreaks.com/topic/176006-solved-how-to-fix-this-error-parse-error-syntax-error-unexpected-end/#findComment-927420 Share on other sites More sharing options...
Alex Posted September 30, 2009 Share Posted September 30, 2009 He means: $theStyle = <<<HERE "border-width:$borderSize $sizeType; border-style: $borderStyle; border-color: green" HERE; should be: $theStyle = <<<HERE "border-width:$borderSize $sizeType; border-style: $borderStyle; border-color: green" HERE; Quote Link to comment https://forums.phpfreaks.com/topic/176006-solved-how-to-fix-this-error-parse-error-syntax-error-unexpected-end/#findComment-927424 Share on other sites More sharing options...
xtops Posted September 30, 2009 Author Share Posted September 30, 2009 THANK YOU VERY MUCH.....IT WORKS Quote Link to comment https://forums.phpfreaks.com/topic/176006-solved-how-to-fix-this-error-parse-error-syntax-error-unexpected-end/#findComment-927434 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.