Sending data to a form using hyperlink

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
Sheridan
Forum Newbie
Posts: 18
Joined: Sat May 31, 2008 1:50 pm

Sending data to a form using hyperlink

Post by Sheridan »

Hi:
I'm not sure that this problem has a solution but here goes. I am retrieving a list of names from a database and displaying them on a web page. The list would have the form:
Doe, John
Smith, Harry
Jones, Dan

I want each name to be a hyperlink and when clicked, it would call a php page sending it the clicked upon name, e.g Doe, John. How do I send that information to the called page using a hyperlink? Is there a superior solution to this problem?

Sheridan :(
User avatar
deejay
Forum Contributor
Posts: 201
Joined: Wed Jan 22, 2003 3:33 am
Location: Cornwall

Re: Sending data to a form using hyperlink

Post by deejay »

the solution I think your thinking of is to use $_GET http://uk2.php.net/manual/ro/reserved.variables.get.php

but you wouldn't send loads of data over through the URL. More to use it to send maybe the name or unique string

page.php?name=johnB


and then do a search on the database again from there.
Post Reply