PDA

View Full Version : Please help, losing the will to live :(


Bonnycat
02-12-2007, 07:54 PM
Hi all

I hope you can help me as im tearing my hair out and my lovely laptop is about to be thrown out the window! ;)
I have recently changed webhosts and had a form on my website which worked prefectly well before. But now I cant get the damn thing working. I am now with HeartInternet and I have installed FormMail to my cgi-bin via their site and they gave me some basic script to try which I pasted to my site:

<form action="http://www.mysite.co.uk/folder-you-chose/FormMail.cgi" method="post">
<input type="hidden" name="recipient" value="test@mysite.co.uk">
<input type="hidden" name="subject" value="This is a test">
<input type="hidden" name="redirect" value="http://www.mysite.co.uk">

Your Email Address: <input type="text" size=20 name="email"><br/>
Your Full Name: <input type="text" size=40 name="realname"><br/><br/>

<input value="Submit Comments" type="submit"> <input value="Clear Form" type=reset>

</form>

But its coming up with page cannot be displayed :confused:

Please can any of you experts out there help me?

Thanks in advance

Kelly

nikkiH
02-12-2007, 08:06 PM
Turn off "friendly" error messages and post the full error message here.

mlseim
02-12-2007, 08:32 PM
Bonnycat ...

Check your "Private Messages" in the Welcome box at the top of this forum.
I sent you a PM.

This topic (sending forms) is a very common topic here.
I'll just send you the info you need without adding more threads.

Bonnycat
02-12-2007, 08:35 PM
Hi Nikki

Thanks for taking the time to reply. Im sorry im a total novice and not sure what you mean by 'friendly error messages' but here is the annoying page cannot be displayed error im getting:

The page cannot be found
The page you are looking for might have been removed, had its name changed, or is temporarily unavailable.

--------------------------------------------------------------------------------

Please try the following:

If you typed the page address in the Address bar, make sure that it is spelled correctly.

Open the www.mysite.co.uk home page, and then look for links to the information you want.
Click the Back button to try another link.
Click Search to look for information on the Internet.



HTTP 404 - File not found
Internet Explorer

Many thanks

Kelly

Bonnycat
02-12-2007, 08:36 PM
Hi Mlseim

Will try and find it now :)

Cheers

Kelly

KevinADC
02-12-2007, 08:39 PM
make sure this is the correct url for your current server to the script:

http://www.mysite.co.uk/folder-you-chose/FormMail.cgi

obviously that is just an example, your real one should be different

Bonnycat
02-12-2007, 08:57 PM
Hi Kevin

Have got that right, I have checked it so many times thinking that must be the problem with my code but the code I posted was a basic one from HeartInternet themselves so is spot on. I completely lost.

Cheers

Kelly

KevinADC
02-12-2007, 09:02 PM
post the real url

Bonnycat
02-12-2007, 09:08 PM
Hiya

Sorry, wasnt sure if I was allowed to do that. It is:

http://www.kellydove.co.uk/cgi-bin/FormMail.cgi

The formmail script is then saved as FormMail.cgi inside cgi-bin folder which itself is in a folder called public_html which ive also tried putting in the above url but is still doesnt work. The permissions to the formmail script are set at 755.

Should I post the formmail script, will that help?

Cheers

Kelly

Bonnycat
02-12-2007, 09:33 PM
WHOHOO!!!! Ive got it working! amazing what a bit of fiddling around can do, lol!
Would like to say a big thanks to all that posted help. The problem in the end was that the FormMail script didnt like being in a folder called cg-bin, I reinstalled it into a folder called test and now it works fine.

Thanks again everyone, what a great site :thumbsup:

Kelly