two asp files

Results 1 to 2 of 2

Thread: two asp files

  1. #1
    Join Date
    Dec 1969

    Default two asp files

    how to post values to different asp files depending on ths situation

  2. #2
    Mike B Guest

    Default RE: two asp files

    If you are using IE 4/5 (not sure about NS), you can use javascript and the DOM to do that.<BR><BR>This assumes you have a form named form1 and an INPUT control named input1.<BR><BR>Here is a sample<BR><BR>&#060;script language=javascript&#062;<BR>function test() <BR>{ if (document.form1.input1.value == SOMETHING)<BR> { document.form1.method="POST";<BR> document.form1.action="ASP1.ASP";<BR> document.form1.submit();<BR> }<BR> else<BR> { document.form1.method="POST";<BR> document.form1.action="ASP2.ASP";<BR> document.form1.submit();<BR> }<BR>}<BR>&#060;/script&#062;<BR><BR>Hope this helps.<BR><BR>Mike

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts