<script language="javascript">
function Userdetails()
{
var p=myform.from_name1.value
alert(p);
<?
$sql="select * from user where id=p";
echo $sql;
?>
}
</script>
Problem is i didnt get the value of p within the php code.How it will pass??plz explain value of a variable pass between java script and php.thanks in advance