AIS AIS - 1 year ago 55
HTML Question

How do I pass the specific value that is clicked, in php?

I have these values in a table

<a href ="test.php>
<h4><?php echo $result_array[$i]['email_number']."<br>"; ?>

and when I click on the value, I want 'email_number' in test.php. Any guidance would be helpful. Thank you.

Answer Source

You can add a query to test.php:

<a href="test.php?email=<?php echo $result_array[$i]['email_number'] ?>">

In this way you add a value in GET to test.php call and you will have like:


In test.php you can call:

echo $_GET["email"];
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download