Page 1 of 1

picking up values in variables.

Posted: Wed Jan 13, 2010 12:44 pm
by fareedreg
I am using php with ajax in library project.. I am displaying (bookname,price,issue charge etc) from mysql database into divtag through AJAX.. but when i would like to insert fields in mysql database ... i would not be able to pick issue charge from div tag..


my first file is bookissueadd.php in which i m using ajax and and displaying value in txtbook divtag from ajax....code is followin

<div name="txtHint" id="txtHint"><b></b></div> </td>



second file is selectbookname.js ..... code is following


function stateChangedbook()
{
if (xmlhttp.readyState==4)
{
document.getElementById("txtbook").innerHTML=xmlhttp.responseText;
}
}



third file is getbookname.php which i m calling from javascrip...

$cal = $bookprice/100*$perval;


this $cal variable is getting issue charges..... now how can i get this value backto my bookissueadd.php so i can process its value at submit time