Forum Moderators: coopster & phranque

Message Too Old, No Replies

missing_fields_redirect page coding

perl formmail missing_fields_redirect help

         

skinter

8:59 pm on Jun 18, 2005 (gmt 0)

10+ Year Member



The script works perfect, and when I don't specify a certain error page, the default one works perfect as well. I want to customize it so it fits the look of my site. I don't know how to code the custom page though. What do I need to put so that it displays the error message? I've searched Google, and a bit of this site, but haven't found anything that has helped me. Please help, and don't flame me.

jatar_k

7:41 pm on Jun 20, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



we don't do flames here :)

do you mean just a custom 404 page?

try this for apache
[httpd.apache.org...]

skinter

10:37 pm on Jun 20, 2005 (gmt 0)

10+ Year Member



No, sorry, I thought I was too vague. Let me start over, I have this formmail script, and I have required fields. I want to make a custom page for when you leave out certain fields, and I was wondering what is the code which tells the page what missing field to show? For instance, if you forget your name, once you hit submit the custom page will say, "Sorry, your name is required in order to send. Please click here to return." Or something similar, just so the people know what they need to fill out. The default page is great and all, but it doesn't fit the look of my site at all. Is there a way that I can make a custom error page like that?

jatar_k

10:44 pm on Jun 20, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



does the script use a specific page right now? If so can you edit that page directly?

What I would do is find and grab the code that is checking the fields right now and move it to a file and try getting that to work with your desired layout or even better try adding your layout to the existing page/script.

skinter

4:03 am on Jun 21, 2005 (gmt 0)

10+ Year Member



It might be using a pre-set page, but I can't tell because it's using the cgi script. So when I'm redirected to the error page the URL is the one of the actual cgi script.

Chico_Loco

6:21 am on Jun 22, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You need to open the script up in a text editor and edit the output it gives upon error.