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> 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. 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 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; 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 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
Archived
This topic is now archived and is closed to further replies.