Forum Moderators: coopster & phranque

Message Too Old, No Replies

Same form different name

         

Mayi

4:09 am on Dec 30, 2004 (gmt 0)

10+ Year Member



Hi

I have a form.cgi that I'm using on one of my pages, the form has required fields so I would like to use the same form an disable the required fields. So what I did was to save the same form with another name and modified the code so that no fields are required, now the problem is that when I renamed the file the script doesn't work it gives me an error 404 file not found. The script is in the same directory (cgi-bin), the path to the file is the same except the name of the script of course.

I tried just renaming the file to see if there was something that I changed by mistake in the code and still doesn't work.

Please help!

Thank you,

I'm new in this forum, thi is great...

coopster

1:00 pm on Dec 30, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld, Mayi.

Did you chmod the new script so that it can be read and executed? Usually you need to chmod 0755. I would expect it to be throwing a 500 error in this case, though...

jatar_k

3:26 pm on Dec 30, 2004 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld Mayi,

also did you change the form action to point to the new filename?

Mayi

4:31 am on Dec 31, 2004 (gmt 0)

10+ Year Member



Thank you guys... wow... the reply was quick.

I got it.... there was no problem with the code. I tried uploading the script thru CuteFTP instead of uploading the file rigth from dreamweaver and it worked.

Thank you for yor help, this forum is great.

Mayi