Results 1 to 2 of 2

Thread: Forms

  1. #1
    Join Date
    Dec 1969

    Default Forms

    Got 2 forms on one ASP page. Can I push them through to another page by one OnClick function on a stand-alone Button?
    Last edited by Jay; 04-16-2011 at 01:34 AM.

  2. #2
    Lurker No. 1003487 Guest

    Default RE: Forms

    WARNING: Haven&#039;t tested this so may be talking through my poo-hole.<BR><BR>Off the top of my head you could include a hidden field for each item in the first form in the second form and vice versa.The OnSubmit event of form two could call a function which could write the values of all the form1 elements into their respective hidden counterparts in form two and then it would submit the form.This function would do the same if form 1 was submitted.<BR><BR>I used a variation of this where I had three buttons and one hidden field, on clicking the button the hidden field would be given the value of the button and the form was submitted. The value was passed in to a SQL query to sort the records as the user required.<BR><BR>Good Luck

Posting Permissions

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