»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 10-01-2003, 02:15 PM   #1 (permalink)
Registered User
 
Join Date: Oct 2001
Posts: 3,539
ClubMed is on a distinguished road
Does anyone know CGI?

I am using a CGI feedback form.

When people enter the correct info it all works fine.

But,

If they leave out the fields it takes them to a results page that I cannot edit.

Is there a way to have a redirect in case of incorrect entries?

For example something similar to this...

<input type=hidden name="redirect" value="http://www.something.com/forum_success.htm">

...that redirects people in the event of an error? (the above code only redirects when there is success).

Thanks!

ClubMed is offline   Reply With Quote
Old 10-01-2003, 11:23 PM   #2 (permalink)
Registered User
 
crouse's Avatar
 
Join Date: Jun 2002
Location: Iowa
Posts: 2,527
crouse is on a distinguished road
Send a message via ICQ to crouse
"If they leave out the fields it takes them to a results page that I cannot edit."

Well, if it's a cgi you uploaded....... then you could change the perl script "assuming it's perl" and possibly correct it there........ if it's not IN your cgi bin and is a virtual-server cgi (one you don't get access too) then I'm at a loss of what you can do short of contacting the server admin, and see if he can fix it........

There should be a graceful exit for bad entries.....
__________________
The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners. --- Author Unknown.
crouse is offline   Reply With Quote
Old 10-02-2003, 05:01 AM   #3 (permalink)
Registered User
 
Join Date: Oct 2001
Posts: 3,539
ClubMed is on a distinguished road
Is it possible to enter a tag that would allow me to redirect to a page I made in case of bad entries ?
ClubMed is offline   Reply With Quote
Old 10-02-2003, 06:25 AM   #4 (permalink)
Registered User
 
Join Date: Oct 2001
Posts: 3,539
ClubMed is on a distinguished road
Okay I found the tag,

<input type=hidden name="missing_fields_redirect" value="http://your.host.com/error.html">
ClubMed is offline   Reply With Quote
Old 10-02-2003, 06:52 AM   #5 (permalink)
Registered User
 
jkrohn's Avatar
 
Join Date: Oct 2001
Location: Champaign, IL
Posts: 3,253
jkrohn is on a distinguished road
Send a message via ICQ to jkrohn Send a message via AIM to jkrohn Send a message via Yahoo to jkrohn
Are you using FormMail?

I believe this is a specific tag to form mail, and not to "CGI".

CGI stands for Common Gateway Interface and can be written in a variety of languages. If you were to put that tag into any form it would do nothing unless the script that acts on the form thinks that it means something.

All I can find on that specific tag is FormMail.

If you indeed are using formmail it would be much more helpful to include that next time Otherwise crouse is 100% correct and you would have to edit the script to check for all fields, and respond appropriately.

Jkrohn
__________________
Jkrohn
jkrohn is offline   Reply With Quote
Old 10-02-2003, 01:57 PM   #6 (permalink)
Registered User
 
Join Date: Oct 2001
Posts: 3,539
ClubMed is on a distinguished road
Yes I am using FormMail, I didn't mention it because I had no idea this was a specific tag, sorry
ClubMed is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 10:15 PM.