Change form POST value

Results 1 to 3 of 3

Thread: Change form POST value

  1. #1
    Lee Baker Guest

    Default Change form POST value

    There is probably a simple solution to this:<BR><BR>I Have a form with a POST value "form1.asp", a text entry field and a submit button "Go". Now want to have an addition button (or link) "Search" to allow the user to redirect to another page and take with them anything they have typed into the text field (like post), but to "form2.asp". Having trouble explaining so, Basically a form with two submit buttons, that posts to different forms depending on which button you select.<BR><BR>Any help appreciated.

  2. #2
    Join Date
    Dec 1969

    Default RE: Change form POST value

    In client-side script, you can secify:<BR>document.yourform.action = ...<BR><BR>try using this.

  3. #3
    Join Date
    Dec 1969

    Default RE: Change form POST value

    Do this:<BR>&#060;form action=""&#062;<BR>&#060;input type="submit" name="action" value="Submit1"&#062;<BR>&#060;input type="submit" name="action" value="Submit2"&#062;<BR>&#060;/form&#062;<BR><BR>In your ASP code do response.write Request("action").<BR><BR>See what happens.

Posting Permissions

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