😕
Hi,
if i have a javascript variable say x=10, how can I pass the value of this variable to a php function?
example:
<?
function a($a)
{ echo $a;
}
?>
<html>
<head>
<script language="Javascript" charset="ISO-8859-1">
function b()
{var x=10;
/ what should I write to call the function a ($a) and I pass x to it /
}
</head>
<body>
<form name="a">
<input type=button value='click' onClick="b()">
</form>
</body>
</html>