Let's say I got a php script called abc.php . And then I after I load the page , I echo something like below :
Code: Select all
<td colspan="21" align="center"><a href="#" onclick= ??? >Click Here</a></td>Any idea how to do it ?
Moderator: General Moderators
Code: Select all
<td colspan="21" align="center"><a href="#" onclick= ??? >Click Here</a></td>Code: Select all
... onclick='window.location.href=abc.php?click=1'....
// abc.php could have this structure:
if (!isset($_GET['click']) {
// BLOCK1 code
} else {
// BLOCK2 code
}
Code: Select all
<a href="abc.php?click=1">click here </a>