freaker87 Posted November 28, 2011 Share Posted November 28, 2011 i have a script which i use to fill select boxes from mysql database.. this line is working req.open("GET", "podetfill.php?data="+src+"&val="+val); it passes the value of data & val so what is the right code for this i am using this but its not working req.open("GET", "shptfill.php?data="+src+"&val="+val+"&poid=+<?php echo $poid; ?>"); Link to comment https://forums.phpfreaks.com/topic/251951-ajax-probleminpassing-value/ Share on other sites More sharing options...
sunfighter Posted November 28, 2011 Share Posted November 28, 2011 It depends on where the php string $poid was gotten. req.open("GET", "shptfill.php?data="+src+"&val="+val+"&poid=+<?php echo $poid; ?>"); S/B req.open("GET", "shptfill.php?data="+src+"&val="+val+"&poid="+<?php echo $poid; ?>); Misplaced quote. Link to comment https://forums.phpfreaks.com/topic/251951-ajax-probleminpassing-value/#findComment-1291869 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.