Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6004177
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T01:13:35+00:00 2026-05-23T01:13:35+00:00

I sent my data (json) for an ajax request with this code; var formdata

  • 0

I sent my data (json) for an ajax request with this code;

var formdata = $("#customForm").serialize();

            type: "post",
            dataType: "json",
            data: formdata,

In the php file, there is possible reverse the serialize?

or i need to make something like that: $pass = $_POST['pass']; for all fields?

thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T01:13:35+00:00Added an answer on May 23, 2026 at 1:13 am

    it sounds like you are headed in the right direction with your “or” statement. The data should be available in the $_POST array without needing to “deserialize” anything.

    EDIT

    Try to name your input fields so that they all come into the post variable as an array:

    <input name="myformdata[first_name]" id="first_name" />
    <input name="myformdata[last_name]" id="last_name" />
    

    Then in the post array you can access all the form data like:

    <?php $form_data_array = $_POST['myformdata']; ?>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Why code below sent data as City=Moscow&Age=25 instead of JSON format? var arr =
I have the following code: var acOptions = { source:function (request, response) { $.ajax({
I'm building a PHP page with data sent from MySQL. Is it better to
I sent a multi-line data with length greater than 20. I'm sure of this
I want to shrink the data that is sent back and forth via AJAX,
I'm trying to process incoming JSON/Ajax requests with Django/Python. request.is_ajax() is True on the
This is my ajax function: function ajax_call(call_method,data_to_send) { logger(function ajax_call. var data_to_send: ); logger(data_to_send);
I have the following code: $.post('block_ajax.php' , { 'action': 'set_layout' , 'listid': 123 ,
am making an ajax call to retrive json data i then store the retrived
I tried to send an array as part of an ajax request like this:

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.