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='/forum/one_place.htm'}
else
{form.action='/forum/another_place.htm'}

}

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

function checkForm (form)
{
if (form.field.value==one_value)
{form.action='/forum/one_place.htm'}
else
{form.action='/forum/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
•  Re: C++ Beginner question
•  Re: function within loop problem
•  moncler outlet
•  Re: Display swf file in pdf
•  Re: how to create forum using asp.net with c# language?
•  Discount coach store
•  Create Better Maps with Global Mapper
•  Re: How to display a message box when record is temporary stored in session/grid view
•  Sharing object in perl


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-2012