dear friends
I want to convert a java script variable in to php varible
some code i write its not work
<form name="myform" method="post" action="abc.php ">
<input type="button" name="next_que" VALUE="next" onClick="incr(t his.form)">
</form>
<SCRIPT LANGUAGE="JavaS cript">
function incr(form){
static var next_que=1;
next_que++;
document.writel n(next_que);
window.location .href = "http://localhost/abc.php?next_qu e=" +next_que;
}
</SCRIPT>
?php
echo "<h1>Screen Resolution:</h1>";
echo "ghWidth : ".$_POST['next_que']."<br>";
?>
sanjay
I want to convert a java script variable in to php varible
some code i write its not work
<form name="myform" method="post" action="abc.php ">
<input type="button" name="next_que" VALUE="next" onClick="incr(t his.form)">
</form>
<SCRIPT LANGUAGE="JavaS cript">
function incr(form){
static var next_que=1;
next_que++;
document.writel n(next_que);
window.location .href = "http://localhost/abc.php?next_qu e=" +next_que;
}
</SCRIPT>
?php
echo "<h1>Screen Resolution:</h1>";
echo "ghWidth : ".$_POST['next_que']."<br>";
?>
sanjay
Comment