codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  "submit" choose the page  Archive Import (Cypha) at 18:15 on Wednesday, November 13, 2002
 

i dont know if the title helps at all but im trying to write a form that redirects you to a page depending on what you chose. For instance on my pop-down menu i click 1, and when i hit submit it takes me to page 1.html. If i click 2 on the menu and hit submit it takes me to page 2.html. does anyne understand what im trying to say?

  Re:  Archive Import (david) at 02:15 on Monday, December 02, 2002
 

you can set the form action in a javascript function so in the form tag put onsubmit:javascript:checkForm(this)
then in the checkForm function do
function checkForm (form)
{
if (form.field.value==one_value)
{form.action='one_place.htm'}
else
{form.action='another_place.htm'}

}

  Re:  ariseadi at 11:47 on Friday, April 24, 2009
 

function checkForm (form)
{
if (form.field.value==one_value)
{form.action='one_place.htm'}
else
{form.action='another_place.htm'}

}









CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
• C++
• Re: refresh parent after closing pop up window
• Dynamic Insertion
• Date and Time function around the world???
• Significant Factors
• Perl array access
• Re: huffman encoding and decoding in C++...
• Perl One Liner: Replace {(
• Re: html including php, accessing the functions


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2009