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. 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? 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 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
Archived
This topic is now archived and is closed to further replies.