PDA

View Full Version : using a the value of the <A>href</A> tags


locust
11-08-2002, 11:28 PM
eg.
foreach($CurrentRow as $field){
print "<TD><A href=Query.php> $field</A></TD>";
}

it genenrates a table with lets say 10 records
how do I check which link the user has clicked

if user clicks on the hypertext it takes the value of that text
and passes it on through to the next php form or page via a variable

or maybe theres an easier way of doing it

kdj2
11-09-2002, 12:01 AM
$counter=0;
foreach($CurrentRow as $field){
print "<TD><A href=Query.php?counter=$counter> $field</A></TD>";
$counter++;
}

On next page:

$referPage = $_GET('counter');

locust
11-09-2002, 08:42 AM
How does that get the value of the hypertext
could u explain

thanks