WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Web Programming Discussion Forum Working with an API? Developing a plugin? Writing a Mod or script for your favorite blog, Web 2.0 site or Forum? Welcome.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 12-10-2003, 10:21 PM
WebProWorld New Member
 

Join Date: Oct 2003
Location: Virginia
Posts: 8
realtythrift RepRank 0
Default form redirect

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!
Reply With Quote
  #2 (permalink)  
Old 12-11-2003, 03:27 AM
Narasinha's Avatar
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Urbana, Illinois, US
Posts: 306
Narasinha RepRank 1
Default Re: form redirect

Quote:
Originally Posted by realtythrift
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
Reply With Quote
  #3 (permalink)  
Old 12-15-2003, 03:54 PM
WebProWorld New Member
 

Join Date: Oct 2003
Location: Virginia
Posts: 8
realtythrift RepRank 0
Default

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
Reply With Quote
Reply

  WebProWorld > Webmaster, IT and Security Discussion > Web Programming Discussion Forum
Tags: ,



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

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


Search Engine Optimization by vBSEO 3.2.0