hi
you can try out::::
step1. give an id to the text box in php codes.
step2. in the ajax fun create a variable and assign the value of the text box to it.
eg:
(php code)
<?php
<input type="text" id="m"/>
?>
(ajax fun)
var e=document.getElementbyId("m").value;
---------------------------
this will make the value of text box be assigned to var e.