vajra_hendry Posted August 15, 2007 Share Posted August 15, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/64966-solved-echo-statement-not-working-with-html/ Share on other sites More sharing options...
d22552000 Posted August 15, 2007 Share Posted August 15, 2007 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"; Quote Link to comment https://forums.phpfreaks.com/topic/64966-solved-echo-statement-not-working-with-html/#findComment-324175 Share on other sites More sharing options...
AndyB Posted August 15, 2007 Share Posted August 15, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/64966-solved-echo-statement-not-working-with-html/#findComment-324176 Share on other sites More sharing options...
vajra_hendry Posted August 15, 2007 Author Share Posted August 15, 2007 Guys thanks very much. Its appreciated Quote Link to comment https://forums.phpfreaks.com/topic/64966-solved-echo-statement-not-working-with-html/#findComment-324192 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.