Jump to content

[SOLVED] how to fix this error Parse error: syntax error, unexpected $end


xtops

Recommended Posts

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>


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;

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.