herghost Posted July 22, 2012 Share Posted July 22, 2012 Hi Guys Firstly apologies if this is in the wrong section, my required output is php! Basically I have the following jQuery which once a submit button is clicked my form opens in a fancybox window. What I am trying to achieve is basically just got the POST values of two input boxes, name & email <script type="text/javascript"> $(document).ready(function(){ $('#register').submit(function() { var url = $(this).attr("action") + "?" + $(this).serialize(); $.fancybox({ href: url, centerOnScroll: true, width: 450, 'type': 'iframe' }); return false; }); }); I have had a read through the .serialize docs but dont really understand how to get the results out into php variables. Quote Link to comment https://forums.phpfreaks.com/topic/266097-getting-post-values-from-serialize/ Share on other sites More sharing options...
requinix Posted July 22, 2012 Share Posted July 22, 2012 It's GET, not POST. Does that explain it? Quote Link to comment https://forums.phpfreaks.com/topic/266097-getting-post-values-from-serialize/#findComment-1363577 Share on other sites More sharing options...
herghost Posted July 22, 2012 Author Share Posted July 22, 2012 It's GET, not POST. Does that explain it? Wow, thats 3 hours wasted ;-) Many Thanks Quote Link to comment https://forums.phpfreaks.com/topic/266097-getting-post-values-from-serialize/#findComment-1363582 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.