AIS AIS - 1 month ago 4x
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.


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"];