Does anyone know of a form processor that...
Hi everybody,
I am working on a web page for a client, and I need to know if anyone knows of a form processing script that can redirect to different URLs based on the selection of a drop down box in the form?
You see, my client wants the user to define which product he/she wants, and then based on that selection be redirected to a different payment page for each product (he uses paypal, and wants to define the name/quantity/price, etc.)
Thanks in advance for your help!
Brian Farkas
Mark Hensler posted this at 07:13 — 20th December 2000.
He has: 4,048 posts
Joined: Aug 2000
this is a bit broad
basically.... pick a language. It's not hard to write from scratch.
is it just one drop down menu? you might want to do this in JavaScript so it runs client-side, keeping the load off your server.
have you created a form yet? it would help a lot if we could see what is needed.
(how many selections are we talking about?)
Mark Hensler
If there is no answer on Google, then there is no question.
Brian Farkas posted this at 16:52 — 20th December 2000.
They have: 1,015 posts
Joined: Apr 1999
I'm talking about a perl script, the form is located here: http://www.loltech.com/register.html
You can see the drop-down menu for which product the user wants inside the form, so that's what we're trying to redirect based on.
NSS posted this at 03:04 — 21st December 2000.
They have: 488 posts
Joined: Feb 2000
Looks like you are trying to parse the formmail and menu at the same time using one cgiemail script which usually requires two scripts.
Anyway in your OPTION tag, change it to
Series 6 Live
If it doesn't work then you may have to re-write your cgiemail script to include the menu option.
Hope this helps
Andrew posted this at 21:18 — 21st December 2000.
They have: 16 posts
Joined: Jan 2000
Use formmail.pl by Matt Wright, available free at:
http://worldwidemart.com/scripts/
Name your select menu 'redirect' with the desired URLs as the values.
That's it!
The script has many other useful form handling functions such as emailing results, autoresponders etc...
Brian Farkas posted this at 21:46 — 21st December 2000.
They have: 1,015 posts
Joined: Apr 1999
Oooh. Great idea Andrew!
I'll be sure to try that!
NSS posted this at 01:51 — 22nd December 2000.
They have: 488 posts
Joined: Feb 2000
Hehe I used formmail.pl for some of my web pages, it's similar to cgiemail.pl it doesn't have a menu option included in the script if I am not mistaken. Please post here, I will be also interested to know how to include the menu option in the script.
Brian Farkas posted this at 02:19 — 22nd December 2000.
They have: 1,015 posts
Joined: Apr 1999
Thanks andrew- it worked PERFECTLY.
All you have to do is download formmail.pl and set it up on your server as you usually would.. Then, one of the hidden fields it asks you to set is called "redirect", which redirects to any URL based on successful output. All you have to do is call the selection box "redirect" and set the value for the options in the box as a URL. Check it out here: http://www.loltech.com/registration2.html (the email form on that page goes to me, so you can go ahead and do tests if you want)
NSS posted this at 04:58 — 22nd December 2000.
They have: 488 posts
Joined: Feb 2000
Is the url correct?
The requested URL /registration2.html was not found on this server
Brian Farkas posted this at 05:13 — 22nd December 2000.
They have: 1,015 posts
Joined: Apr 1999
Sorry that should be http://www.loltech.com/register2.html
\
Brian
NSS posted this at 05:26 — 22nd December 2000.
They have: 488 posts
Joined: Feb 2000
Yes it's working, I must admit that Andrew has taught me something that I thought never exists and I hope to use it.
Thanks again, Andrew
Regards,
NSS
japhy posted this at 13:58 — 23rd December 2000.
They have: 161 posts
Joined: Dec 1999
Matt Wright produces buggy code, so please beware.
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.