Page 1 of 1

Get value of an ID from a submit button

Posted: Mon Dec 22, 2008 9:55 am
by kalp1200
Hi,

I have a search page that retrieves information and display records from the database, at the last column of the row, there will be a submit buttion that would get the values of that certain record and display it on the next page.This next page consists of a form ( has text boxes ). I need to be able to display the selected record of the search page into these textboxes. How do I go about it ..? Please help..I think I need to use the get function.

Re: Get value of an ID from a submit button

Posted: Mon Dec 22, 2008 10:18 am
by pickle
When you click the submit button, any form element will be submitted as well. Put the ID of the certain record in a hidden input element, then it will be posted when you click the appropriate submit button.

Re: Get value of an ID from a submit button

Posted: Mon Dec 22, 2008 11:29 pm
by kalp1200
Thank You so much, got it.. I have another question about the GET function, posting it as another subject in the forum.