Contact Us Forum Rules Search Archive
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 06-24-2004, 08:52 AM
WebProWorld Member
 

Join Date: Jul 2003
Location: Fairview, NC
Posts: 87
twopooches RepRank 0
Default mailform redirect based upon user selection

I am using FormMail.pl-
I swear I have seen something that can redirect to a (URL) page from a form, based on the user's selection (after clicking submit).
However I have been unable to find this value anywhere.
I know how to make a redirect menu/list for a page, this will not work for waht I need.

Any ideas or suggestions are desperately needed...
Thanks in advance for your help.
__________________
Website consulting and design for...
small business, home based companies, personal or hobby websites
http://twopooches.com/
Reply With Quote
  #2 (permalink)  
Old 06-25-2004, 04:36 AM
WebProWorld Pro
 

Join Date: Jul 2003
Location: Canada
Posts: 113
PBITech RepRank 0
Default

There are countless variations of the FormMail.pl script, so it is difficult to comment without seeing the actual script. If your referring to the one from Matt's script archive, I believe there is a hidden field required in the the actual HTML form which is "hidden" like so...

Code:
<input type="hidden" name="redirect" value="http://myplace.com/thankyou.html">
Simly change that to something like this...

Code:
<SELECT name="redirect">
<OPTION>http://www.option-a.com</OPTION>
<OPTION>http://www.option-b.com</OPTION>
<OPTION>http://www.option-c.com</OPTION>
<OPTION>http://www.option-d.com</OPTION>
<OPTION>http://www.option-e.com</OPTION>
</SELECT>
Jim
__________________
PBI Tech
James R Michael.
Internet Development And Marketing.
Reply With Quote
  #3 (permalink)  
Old 06-25-2004, 06:02 AM
WebProWorld Member
 

Join Date: Jul 2003
Location: Fairview, NC
Posts: 87
twopooches RepRank 0
Default Thank you

Thanks Jim,

I just dont see where to specify the option to alert the correct redirect URL. Most of the scripts I have looked at have something that says "if selected".

I will give it a shot to see what happens.

Without getting into a big deal with this I hope to figure out something....
__________________
Website consulting and design for...
small business, home based companies, personal or hobby websites
http://twopooches.com/
Reply With Quote
  #4 (permalink)  
Old 06-25-2004, 07:54 AM
WebProWorld Pro
 

Join Date: Jul 2003
Location: Canada
Posts: 113
PBITech RepRank 0
Default

All I have to work with is your contact.htm page on your site. Within the HTML code on that page you'll see a form, and within that form you have this...

Code:
<input type="hidden" name="redirect" value="http://twopooches.com/thanks.htm">
That is a hidden input value that no one sees, but is passed to the script when submitted. All you have to do is replace that line with this...

Code:
<SELECT name="redirect"> 
<OPTION>http://www.option-a.com</OPTION> 
<OPTION>http://www.option-b.com</OPTION> 
<OPTION>http://www.option-c.com</OPTION> 
<OPTION>http://www.option-d.com</OPTION> 
<OPTION>http://www.option-e.com</OPTION> 
</SELECT>
You do not need to edit the actual FormMail.pl script, but only the HTML page the form is on. All your doing is removing the hidden field, and making it visable as options/selection box, giving the .pl script more options to consider when the form data is submitted.

All you have to do is change the "www.option-a .com" and so on in the above example to the URLs you would like available for the user to choose from.

However, if you are using some software to generate your HTML pages and are not comfortable with hard code, I can't be of much help, and would't recommend messing around with it if you are not comfortable. Yet, it is a fairly simple and quick task with only a notepad.

Jim
__________________
PBI Tech
James R Michael.
Internet Development And Marketing.
Reply With Quote
  #5 (permalink)  
Old 06-25-2004, 08:10 AM
WebProWorld Member
 

Join Date: Jul 2003
Location: Fairview, NC
Posts: 87
twopooches RepRank 0
Default The form

here is the URL of what I am trying to do...
http://referbizsales.com/referform.htm

when the user selects either option and then clicks submit I want them to be redirected to 2 different pages based upon their selection...

This may help you see what my problem is.

I tried the option list similar to what you showed and it did not work. (Hidden redirect field)
I am able to work with code. It is just that I have a hard time expressing the code issues.

How does the script know which option URL goes with a selection...

Thanks again..I am sure I am being very blonde and causing you to pull your hair out...:)
__________________
Website consulting and design for...
small business, home based companies, personal or hobby websites
http://twopooches.com/
Reply With Quote
  #6 (permalink)  
Old 06-25-2004, 04:26 PM
WebProWorld Member
 

Join Date: Jul 2003
Location: Fairview, NC
Posts: 87
twopooches RepRank 0
Default Finally

I was able to see what you mean't... the problem was that it was to simple (I was looking for something harder)... Thank you
__________________
Website consulting and design for...
small business, home based companies, personal or hobby websites
http://twopooches.com/
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