RawRecruit
MIS
Hi Everyone,
This is a stupidly simple question the answer to which - suprisingly - I can't find online.
Can some one give me an example of the use of "id" in a HREF link and how it is accessed in the called page, for instance passing a numeric variable to another page.
I am currently retrieving a number of rows from a database and presenting the data in a table. The last two cells of each table row contain a link (that is required to pass the numeric ID of that record) thereby allowing the record to be either:-
edited (linking to Parent_edit.php)
or viewed in greater detail (linking to Parent_Detail.php)
The alternative I considered was to create the cell, a form within the cell (not even sure that its possible!), a submit button within the form and use $_POST to pass the var. Each cell would require its own form to cope with the multiple record IDs and the two destinations!?
Would it work?
Many thanks to everyone in advance...
This is a stupidly simple question the answer to which - suprisingly - I can't find online.
Can some one give me an example of the use of "id" in a HREF link and how it is accessed in the called page, for instance passing a numeric variable to another page.
I am currently retrieving a number of rows from a database and presenting the data in a table. The last two cells of each table row contain a link (that is required to pass the numeric ID of that record) thereby allowing the record to be either:-
edited (linking to Parent_edit.php)
or viewed in greater detail (linking to Parent_Detail.php)
The alternative I considered was to create the cell, a form within the cell (not even sure that its possible!), a submit button within the form and use $_POST to pass the var. Each cell would require its own form to cope with the multiple record IDs and the two destinations!?
Would it work?
Many thanks to everyone in advance...