i ahve aproblem to use ajax and php together.
in the following code please tell me how to display the contents of the variable "$num" using echo.....some mates told me that i have to use ajax...if so, please help me
1-in javascript code i have:
<form action="thisBackUpphpProject6Formate.php" method="get">
Family Name:<input type="text" name="field4"><br>
First Name:<input type="text" name="field5"><br>
<input type="Submit">
NUM: <input type="text" id="idnum" name="num" value=""><br>
</form>
2-the value of the field NUM is populated using :
function setrownum(par)
{
document.getElementById('idnum').value = par;
num=par;
}
3-In PHP code, i have :
$field4=$_GET['field4'];
$field5=$_GET['field5'];
$num=$_GET['num'];
4- when i try this:
echo "$num"; /*NOTHING IS DISPLAYED */
please guid and help me...to display the contents of "$num"