Jump to content

Recommended Posts

Hi guys, could you please help.  Nearly finished now but I the last echo statement at the end of the IF statement wont work!!

 

else
{
        /* $destination = 'uploads/'.'\\'.$_FILES['pix']['name']; */
        $destination = "uploads/";
$destination = $destination . basename( $_FILES['pix']['name']);
        $temp_file = $_FILES['pix']['tmp_name'];
        move_uploaded_file($temp_file,$destination);
        echo "<p><b>Ok it worked man. File uploaded:</b>";
        echo $_FILES['pix']['name'];
        echo $_FILES['pix']['size'];
#line 69       echo "<p>ok so if your happy with that then click <a href="review.php">here</a> to go to the review screen";

}
}

?>

 

The error is :

 

Parse error: syntax error, unexpected T_STRING, expecting ',' or ';' in /home/learnth1/public_html/steptwo.php on line 69

simple

 

 

change

       echo "<p>ok so if your happy with that then click <a href="review.php">here</a> to go to the review screen";

 

into:

       echo "<p>ok so if your happy with that then click <a href=\"review.php\">here</a> to go to the review screen";

 

echo "<p>ok so if your happy with that then click <a href=\"review.php\">here</a> to go to the review screen";

 

You can either escape the double quotes (or they'll terminate the string that echo is expecting), or replace the double quotes with singles. Either way works.

 

And please don't start a whole new topic for the last problem with a topic you already have for the remainder of your code.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.