Get value of an ID from a submit button

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
kalp1200
Forum Newbie
Posts: 19
Joined: Tue Aug 26, 2008 8:57 pm

Get value of an ID from a submit button

Post 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.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Re: Get value of an ID from a submit button

Post 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.
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
kalp1200
Forum Newbie
Posts: 19
Joined: Tue Aug 26, 2008 8:57 pm

Re: Get value of an ID from a submit button

Post by kalp1200 »

Thank You so much, got it.. I have another question about the GET function, posting it as another subject in the forum.
Post Reply