dflow Posted November 27, 2011 Share Posted November 27, 2011 i need to refresh a div with hidden fields in a form that gets a value from a form field //main page <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script> <input name="ID" type="text" onchange='ready("<?php echo $ID; ?>");' value="<?php echo $ID=44;?>" /> <script> $(document).ready(function(ID) { jQuery.ajax({ url: "getPlaceids.php", type: 'POST', data: {ID : ID}, success: function(msg){ $('#mytarget').load( 'getPlaceids.php', { ID: ID }); } }); </script> <div id="mytarget"></div> //getPlaceids.php <?php echo '<input name="ID" type="text" value="'.$_POST['$ID'].'" />'; ?> Quote Link to comment https://forums.phpfreaks.com/topic/251888-help-with-load-post/ Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.