picking up values in variables.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
fareedreg
Forum Newbie
Posts: 2
Joined: Thu Dec 17, 2009 4:23 pm

picking up values in variables.

Post 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
Attachments
picd.jpg
picd.jpg (31.93 KiB) Viewed 169 times
Post Reply