the following code works
<?
$attrib = Array();
$attrib["onclick"] = "javascript:window.location='add'";
?>
the following gives me error, here $s is a php variable, it gives me junk value (disable?id=Object%20id%20#7%3E)
<?
$attrib = Array();
$attrib["href"] = "javascript:if(window.confirm('Are you sure you want to disable this site?')){window.location='disable?id=$s>'}";
?>
how can i fix that?
Thanks
<?
$attrib = Array();
$attrib["onclick"] = "javascript:window.location='add'";
?>
the following gives me error, here $s is a php variable, it gives me junk value (disable?id=Object%20id%20#7%3E)
<?
$attrib = Array();
$attrib["href"] = "javascript:if(window.confirm('Are you sure you want to disable this site?')){window.location='disable?id=$s>'}";
?>
how can i fix that?
Thanks