请任何人帮我给我解决方案,让我在没有javascript的情况下运行像onclick这样的命令......谢谢//javascript代码:
function selectedproperty(id)
{
document.getElementById("pid").value=id;
document.getElementById("form1").submit();
}
function singleproperty(id)
{
document.getElementById("pid").value=id;
document.getElementById('form1').action="singlepropertydetail.php"
document.getElementById("form1").submit();
}
// html/php code
<ul>
<?PHP
$sql=mysql_query("select build_name,flat_no,property_id from new_property where owner='".$ownerid."'") or die(mysql_error());
while($row=mysql_fetch_row($sql))
{
echo "<li onclick='singleproperty(".$row[2].");' >".$row[0]." ".$row[1]."</li>";
}
?>
</ul>