Confidence Posted February 25, 2010 Share Posted February 25, 2010 hi guys, i want to transfer a php array through jquery to another php file as an input paramter, for processing....so i do in first php file $tarif_json=json_encode($tarif_data ['provider']); then i put it in a hidden form field <input type="hidden" name="json" id="json" value=" <?php echo $tarif_json ;?>" > and then i pass it to jquery to pass to another php page: $('#tarif').load("ajax/order.php?atask=gettarifs", { 'json' : $('#json').val() }); but when i debug with firebug in console view, to view ajax processes, i see json is empty under POST. what is the problem here? and is there another way to send the array to the other php page? thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/193338-json_encode-and-jquery/ 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.