Embebbed forms

Results 1 to 3 of 3

Thread: Embebbed forms

  1. #1
    Jean-Luc Guest

    Default Embebbed forms

    I am not sure if I am thinking right or not. I would like to give the opportunity to a user to choose from two actions sending the same data to a different ASP. I tried somthing like shown below but it doesn&#039t seem to work.<BR>&#060;form action="page1.asp"&#062;<BR>&#060;form action="page2.asp"&#062;<BR>&#060;input type="submit" name="cmdValidate2" value="Action2"&#062;<BR>&#060;input type="submit" name="cmdValidate1" value="Action1"&#062;<BR><BR>Any other way to do it ? Or am I really tired<BR><BR>jean-luc

  2. #2
    Join Date
    Dec 1969
    Posts
    1,388

    Default RE: Embebbed forms

    You need to manipulate the DOM. First Name your form ie.<BR>&#060;form action="page1.asp" name="form1"&#062;<BR><BR>Then you need to create the buttons:<BR><BR>&#060;input type="button" name="button1" value = "Action1" onClick="document.form1.action = &#039page1.asp&#039;document.form1.submit()"&#062; <BR><BR>(all this on one line)<BR><BR>&#060;input type="button" name="button2" value = "Action2" onClick="document.form1.action = &#039page2.asp&#039;document.form1.submit()"&#062; <BR><BR>(all this on one line)<BR><BR>That should change which page your submitting to and submit it.<BR>Good luck.<BR>

  3. #3
    Join Date
    Dec 1969
    Posts
    1,388

    Default RE: Embebbed forms

    --------------------------------------------------------------------------------<BR>You need to manipulate the DOM. First Name your form ie.<BR>&#060;form action="page1.asp" name="form1"&#062;<BR><BR>Then you need to create the buttons:<BR><BR>&#060;input type="button" name="button1" value = "Action1" onClick="document.form1.action = &#039page1.asp&#039;document.form1.submit()"&#062; <BR><BR>(all this on one line)<BR><BR>&#060;input type="button" name="button2" value = "Action2" onClick="document.form1.action = &#039page2.asp&#039;document.form1.submit()"&#062; <BR><BR>(all this on one line)<BR><BR>That should change which page your submitting to and submit it.<BR>Good luck.<BR><BR>ps for some reason the ; character didn&#039t show up between the two commands in the onClick event<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
  •