Hello everyone,
I am trying to put a value into $value;
after the value is clicked the count stays at one or it resets itself any help will be awesome
Thank you.
<table width="61%" border="1" align="center" cellpadding="4">
<?php
$count = 1;
if (isset($_GET['value'])) {
$count++;
$value[$count] = $_GET['value'];
print "<tr><td><big>You clicked: $value[$count]</big></td></tr>";
}
$data = 10;
for ($i=1; $i<=$data; $i++) {
print "<tr><td><a href=\"?value=$i\">Data: $i</a></td></tr>";
}
?>
</table>