the_ut_tick Posted May 24, 2007 Share Posted May 24, 2007 Hi all, I would like to write a function where, when the user clicks on the name of a person, he is taken to a bio of that person. Obviously, I only want to write one function and pass the name (which is clicked on) as a variable. I see this everywhere, but can't seem to find out how it's done. Is it just a type of form or is it done with session variables? Thanks Link to comment https://forums.phpfreaks.com/topic/52738-passing-variables-that-are-clicked-on/ Share on other sites More sharing options...
TEENFRONT Posted May 24, 2007 Share Posted May 24, 2007 use the GET method. you would link the persons name to site.com/bio.php?name=jim then use $name = $_GET['name']; then use sql to find all the info for $name. Link to comment https://forums.phpfreaks.com/topic/52738-passing-variables-that-are-clicked-on/#findComment-260395 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.