The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
ERROR 500, Problem Running a Script...
A scripting/config error prevents the server from showing this page.
If you are the owner you can find more help at the Freeola Support Centre. or by speaking to a member of our technical support team on: 0871 210 9977
-----
However, I do receive the correctly completed Booking/Enquiry email on testing. I've tried renaming my form with .php5 and the form handling page .php5 but believe I can still keep them as .php ?
I've tried setting permissions to 755 & also tried 644 but no joy.
Part of the script does work ie if you dont supply a tel. no or email address you correctly receive the following....
Not transmitted
Error:
Please supply your Telephone number or Email address!
Click on the BACK button on your browser to return to the form
--
Any ideas as to whats wrong? my form is at http://www.ballifeary.com
if($email != ""){ and at the end of the script }
If $email is blank how is the script executed beyond this if statement, ie. the booking form wouldnt be emailed to me.
You have 2 options you could do if the user doesn't submit an email address. One is to display the default message you get when the telephone number and email address is blank. Just modify the line:
if($telephone == "" && $email == ""){
to
if($telephone == "" && $email == "" || $email == ""){
Of course this doesn't tell the user exactly which of the 2 fields they left blank so instead you could add an
else
clause to the end of if($email == ""){... }
, something like:if($email == ""){
process the form and email it..
} else {
echo 'whatever error message you want (Oops email left blank, not sent...)';
}
Hope that helps.