Dynamic form action

Results 1 to 2 of 2

Thread: Dynamic form action

  1. #1
    Join Date
    Dec 1969

    Default Dynamic form action

    Is it possible to dynamically control a forms action with asp? For example, clicking one button submits the form to "pageA.asp" and clicking a different button submits the same form to "pageB.asp"?

  2. #2
    Join Date
    Dec 1969

    Default RE: Dynamic form action

    You can do it using javascript :<BR><BR>&#060;input type="button" name="submit" value="submit" onClick="document.form.action = &#039pageA.asp&#039;document.form.submit()"&#062;< BR><BR>and for the other button :<BR><BR>&#060;input type="button" name="submit" value="submit" onClick="document.form.action = &#039pageB.asp&#039;document.form.submit()"&#062;< BR><BR><BR>Hope this helps.<BR>

Posting Permissions

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