Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Different Forms Based on User Input

Status
Not open for further replies.

N8bak

Technical User
Aug 16, 2004
25
US
Greetings. Currently we are submitting and validating our form data internally via C programs. We will be gradually moving to a third-party company for the validation piece and their forms are being submitted via Perl. During the transition period we will need to have both validation methods avaliable to our customers. We need the ability to route them to one form or the other based on the site# they enter. I know this is possible using cookies, but I'd rather use something more secure. Any ideas?

~N8

"Be not afraid of greatness. Some are born great, some achieve greatness, and some have greatness thrust upon `em." - Twelfth Night, II:5
 
I strongly suggest you do this server-side. One way would be to change your existing C program such that if the site# submitted is in the appropriate range, the request is redirected to the external URL.

Or you could write a new program for the form to submit to, which just looks at the site# and redirects to the appropriate script.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Thanks for the quick reply, Chris. Ideally what I would like to do is have the end user enter the site# which would pass to one script or the other, similar to a cookie but without the security concerns. I would like to avoid a major rewrite as our 100+ sites will be transitioning to the new process over a period of several months.

~N8

"Be not afraid of greatness. Some are born great, some achieve greatness, and some have greatness thrust upon `em." - Twelfth Night, II:5
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top