Hi
Well I'm trying to set up enquiry from page that get sent to my email when the send button is pressed and calls the php file. I'm using swishmax software and the site i'm having trouble with is on the link below:
http://www.hotelceilidh-donia.co.uk/contactnew.html
When I try in on my server www.xomeia.com it works prefectly but when I put it on the hotel server it can't acess the php file for some reason!!!!
Why is this? And what can I do to fix it? The code used to call the php file is below.
on (release) {
if (nameVar=="") {
errormessage="Please enter your name";
} else {
if (emailVar=="") {
errormessage="Please enter your email";
} else {
if (emailVar.indexOf("@") == -1 || emailVar.indexOf(".") == -1) {
errormessage="Please enter a valid email";
} else {
if (dayVar=="" || dayVar<1) {
errormessage="The Day must be more that 1";
} else {
if (dayVar=="" || dayVar>31) {
errormessage="The Day must be less that 31";
} else {
if (monthVar=="" || monthVar<1 || monthVar>12) {
errormessage="Please a valid month i.e 1-12";
} else {
if (yearVar=="" || yearVar<2006 ) {
errormessage="The year is not valid";
} else {
if (yearVar=="" || yearVar>2008) {
errormessage="We can only book up to 2008 online";
} else {
if (nightVar=="" || nightVar<1 || nightVar>21) {
errormessage="The number of nights must be between 1-21";
} else {
errormessage="Sending Message....";
send="yes";
this.loadVariables("contact.php",'POST');
nameVar="";
companyVar="";
emailVar="";
addVar="";
cityVar="";
postVar="";
countryVar="";
teleVar="";
faxVar="";
dayVar="";
monthVar="";
yearVar="";
nightVar="";
roomVar="";
specialVar="";
findVar="";
keywordVar="";
}
}
}
}
}
}
}
}
}
}
I thought of accessing the php file from the xomeia server that works but I'm not sure how to do this. Any ideas????
Thanks for the help