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

  • Home
  • SEARCH
  • 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 6030243
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T05:00:28+00:00 2026-05-23T05:00:28+00:00

Why serialize (Jquery) does not include submit button name? In PHP I normally do

  • 0

Why serialize (Jquery) does not include submit button name?

In PHP I normally do this:

if (isset($_POST['submit_signup'])) {
    print_r($_POST);
    //Then check firstname, password, etc POSTS
}

That don’t work, what is the solution to this?

  • 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-23T05:00:28+00:00Added an answer on May 23, 2026 at 5:00 am

    Not sure if this is the most elegant solution, but you can use a hidden input box to contain a value (preferably something that changes, like a sort of hash) and check for that. Like:

    <input type="hidden" name="signup_submitted" value="random_hash" />
    

    And in your code you can do:

    if(isset($_POST['signup_submitted']))
    {
        // Do your work;
    }
    

    Warning: A hash is not a security thing here, only a way to do the same thing you’re used to.

    Small Update: I noticed you also asked ‘why’ JQuery does not include the submit button in the serialize() output. This is default behaviour as specified in the HTML draft(s). As long as no submit button is pressed, it should not be included in the submitted (or serialized) data. The JQuery creators decided to honour that and not include it in the serialized string.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there something like serialize/unserialize PHP functions in jQuery? These functions return a string
I am using jQuery to swap out the image here after the submit button
I'm using this jQuery Validation script to submit my form(s), but I need some
I am doing the following: <script type=text/javascript> $(function(){ $(#ipad).submit(function() { $.post(ipadcheck.php, $(#ipad).serialize(), function(data) {
The following codes works without jquery. I insert data but it does not update
I got this script which works perfect when i am not using jquery's alert
I am trying to get the return from the mail.php but it does not
jQuery $.ajax() does not seem to work correctly with IE8 but it is working
I'm using jQuery.serialize to retrieve all data fields in a form. My problem is
Note: This question uses jQuery but the question has nothing to do with jQuery

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.