R
Randell D.
Folks,
I am working on a contact db using PHP and MySQL. My results so far outputs
a slimed down version of records to the browser. I would like to implement
a method whereby the user can click on a text link which will then show the
full record. I don't want to have hyperlinks with values incorporated in
the link (thus, I don't want to have http://www.example.com?abc=1234) - I
prefer to use a POST method thus what I would like to do is have my output
listed inside a form. Each record would have unique hidden form value using
either a <INPUT TEXT> or <INPUT CHECKBOX>. Each record would have a
hyperlink so that when the hyperlink is pressed, its respective unique
record ID is noted, then the form submitted.
I know something like this is possible - I can work out the PHP/MySQL part
of it myself - But my javascript is still far too junior to accomplish
something like this.
Can someone help steer me in the right direction? If they know of a working
example I'm sure I could read and re-write the script to fit in with my
project...
Breaking my problem down a bit... I know I can have an onClick event in my
<A HREF> tag... But how can I have it set a value in a hidden box, and then
post the form?
All help, via the newsgroup would be much appreciated...
thanks,
randelld
I am working on a contact db using PHP and MySQL. My results so far outputs
a slimed down version of records to the browser. I would like to implement
a method whereby the user can click on a text link which will then show the
full record. I don't want to have hyperlinks with values incorporated in
the link (thus, I don't want to have http://www.example.com?abc=1234) - I
prefer to use a POST method thus what I would like to do is have my output
listed inside a form. Each record would have unique hidden form value using
either a <INPUT TEXT> or <INPUT CHECKBOX>. Each record would have a
hyperlink so that when the hyperlink is pressed, its respective unique
record ID is noted, then the form submitted.
I know something like this is possible - I can work out the PHP/MySQL part
of it myself - But my javascript is still far too junior to accomplish
something like this.
Can someone help steer me in the right direction? If they know of a working
example I'm sure I could read and re-write the script to fit in with my
project...
Breaking my problem down a bit... I know I can have an onClick event in my
<A HREF> tag... But how can I have it set a value in a hidden box, and then
post the form?
All help, via the newsgroup would be much appreciated...
thanks,
randelld