Click to See Complete Forum and Search --> : how to disable this link


beboo002
09-06-2007, 05:47 AM
<?
if($a==0||$a==1)
{
echo "<a href='home1.php'>home[/url]";
}
?>
how to disable this link and when user click the above link it gives alert msg also.

hoangkc
09-06-2007, 06:38 AM
<?
if($a==0||$a==1)
{
echo "<a href='home1.php' onclick=\"alert('this link is disabled'); return false;\">home[/url]";
}
?>

beboo002
09-06-2007, 06:52 AM
thanks for reply

here i am not reciving any alert msg

Declan1991
09-06-2007, 05:02 PM
<?
if($a==0||$a==1)
{
echo "<a href='home1.php' onclick=\"alert('this link is disabled'); return false;\">home</a>";
}
?>