Jump to content

Getting POST values from .serialize()


herghost

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.