By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,383 Members | 2,070 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,383 IT Pros & Developers. It's quick & easy.

parse error - php form script unexpected $end parse error

mikeinspain
P: 21
Keep getting this error!

Parse error: syntax error, unexpected $end in /home/9144/domains/cbweb.co.uk/html/faq_finance.php on line 139

PHP Below.. Script was working 1 minute and copied the script from another file that was working great.

[PHP] elseif (!trim($name)) {
echo "<p>Ooops!, it appears that you did not enter a Name</p><p><a href='javascript: history.go(-1)'>Click here to go back</a>.</p>";
} [/PHP]

Any help appreciated??

Cheers

Mike
Jan 30 '07 #1
Share this Question
Share on Google+
4 Replies


Motoma
Expert 2.5K+
P: 3,235
Keep getting this error!

Parse error: syntax error, unexpected $end in /home/9144/domains/cbweb.co.uk/html/faq_finance.php on line 139

PHP Below.. Script was working 1 minute and copied the script from another file that was working great.

[PHP] elseif (!trim($name)) {
echo "<p>Ooops!, it appears that you did not enter a Name</p><p><a href='javascript: history.go(-1)'>Click here to go back</a>.</p>";
} [/PHP]

Any help appreciated??

Cheers

Mike
Care to post a little more code? I don't see a $end in that block.
Jan 30 '07 #2

mikeinspain
P: 21
Its ok.. I think I have fixed it, but not quite sure how??

Mike
Jan 30 '07 #3

ronverdonk
Expert 2.5K+
P: 4,258
This error is caused because you did not close a quote, a parenthesis or a curly brace. But you fixed it seemingly unconsciously.

Ronald :cool:
Jan 30 '07 #4

Motoma
Expert 2.5K+
P: 3,235
This error is caused because you did not close a quote, a parenthesis or a curly brace. But you fixed it seemingly unconsciously.

Ronald :cool:
You're right Ronald! I completely overlooked that possibility because of the $ in front of the word end.
Jan 30 '07 #5

Post your reply

Sign in to post your reply or Sign up for a free account.