View Full Version : form redirect
realtythrift
12-10-2003, 10:21 PM
I have a form at http://www.insight-realty.com/list_in_mls.html that contains a drop down menu. I would like the user to be redirected to one of 3 pages when they click "submit" based on which selection they make from the drop down.
Is there a script or dreamweaver addon that will do this for me?
Thanks!
Narasinha
12-11-2003, 03:27 AM
I have a form at http://www.insight-realty.com/list_in_mls.html that contains a drop down menu. I would like the user to be redirected to one of 3 pages when they click "submit" based on which selection they make from the drop down.
Is there a script or dreamweaver addon that will do this for me?
Thanks!
The form information is processed by the Perl script "formmail.pl", which mails the entered information to a specific email address (or addresses). Did you set this form up yourself, or is it one that was available to you without modifications?
In addition to mailing the contents of the form fields to you, the Perl script displays a response page to the browser. If I understand you correctly, you want to have a different response page based on which of three plans was chosen from the pull-down menu. This isn't difficult at all if you are familiar with Perl programming. You can have custom response pages displaying the information they just submitted (for verification perhaps) or just direct the browser to a specific HTML page. This could all be determined by the value of the item selected for "plan" in the form. If you aren't familiar with Perl or other server-side programming, you really need the assistance of someone who is. I don't know Dreamweaver, but I don't think it generates custome Perl scripts.
Incidentally, do you know if you've had any problems regarding the ID and NAME attributes of certain form fields being different?
Best Regards,
Narasinha
realtythrift
12-15-2003, 03:54 PM
Narasinha,
Thanks for your reply. I don't know much (if anything) about Perl programming so I wouldn't know how to make changes to it as you suggested. I got the script from my host, but they don't support any changes.
I really just wanted the user to go right to the appropriate paypal page.
BTW, I use the same script for all of my forms on the site. Will changing the script affect other forms on the site?
I haven't had any problems so far using different ID and Name attributes.
Thanks again,
Lawrence