hi, I want to assign the value of a javascript's variable to a php variable.How it is possible in javascript function??
I tried it in php file ,but unable to do that .plz help me & correct tje code .thanx in advance
the code is
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>Title here!</title>
</head>
<body>
<form name="contest" method="post">
<input type="button" ONCLICK="mush()" value="click me">
<input type="textarea" name="area" >
</textarea>
</form>
<?php
echo "
<script language='javascript' >
function mush() { \n
jojo=document.contest.area; ";
$applicant="jojo";
echo " alert(' Hello $applicant ');
}
</script>";
?>
</BODY>
</html>
I tried it in php file ,but unable to do that .plz help me & correct tje code .thanx in advance
the code is
<!doctype html public "-//W3C//DTD HTML 4.0 //EN">
<html>
<head>
<title>Title here!</title>
</head>
<body>
<form name="contest" method="post">
<input type="button" ONCLICK="mush()" value="click me">
<input type="textarea" name="area" >
</textarea>
</form>
<?php
echo "
<script language='javascript' >
function mush() { \n
jojo=document.contest.area; ";
$applicant="jojo";
echo " alert(' Hello $applicant ');
}
</script>";
?>
</BODY>
</html>