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 5930153
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T14:31:03+00:00 2026-05-22T14:31:03+00:00

$(#doStatus).click(function() { var serialized = $(#formStatus).serialize() $.get(<?echo $site[‘url’];?>modules/yobilab/tuitting_core/classes/doStatusBox.php, serialized); window.setTimeout(‘location.reload()’, 1000); return false; });

  • 0
$("#doStatus").click(function()
{
var serialized = $("#formStatus").serialize() 
 $.get("<?echo $site['url'];?>modules/yobilab/tuitting_core/classes/doStatusBox.php", serialized);
window.setTimeout('location.reload()', 1000);
return false;
});

This code will return something like this:

tuitting=test&f%5B%5D=2&f%5B%5D=4&f%5B%5D=8&t%5B%5D=2&t%5B%5D=3&t%5B%5D=4

Where tuitting(the first value) is the value of the textarea, then we have:

-f this is the name of somecheckboxes that have the same names but different values

-t other checkboxes, same names, different values

As you may see the serialized function for “f” and “t” returns strange values, when they should only be simple number, like tuitting=test&f=1&f=3&t=9&t=10

Now when the ajax call the doStatusBox.php file nothing happens.

The doStatusBox.php file is made by a simple foreach php loop.

It will take the below variables:

$_GET['tuitting']
$_GET['t']
$_GET['f']

Foreach `$_GET[‘t’] and $_GET[‘f’] the loop will insert the relative values into the database.

This is not working at all. The php foreach can not recognize the results given by the jQuery serialize function and does not do simply anything.

What is the problem?

I should use another function instead of foreach?

Or the problem is in the jQuery serialized function?

Please help me.
`

  • 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-22T14:31:04+00:00Added an answer on May 22, 2026 at 2:31 pm

    Since we cannot see your HTML code, I can’t say for sure what the problem is, but I suspect it’s one of two problems:

    1. (most likely) – your checkbox fields need to have a [] after the name. Example: name=”t[]”. If all of your checkboxes are name=”t”, then when multiple are posted, PHP will only see one of them. However, if you put brackets at the end of the name PHP will recognize the collection of values as an array that you can loop through.

    2. (less likely) – the PHP script that receives this data should run urldecode() on the data. Example: $tuitting = urldecode($_GET[‘tuitting’]);

    Hope this helps!

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

Sidebar

Related Questions

I have the following the functions: This function will get every IP Addresses from
all, i need to do this as the following require 'sinatra' require 'app_env' get
First problem is that I do not know how to get the values of
I am trying to get a value which i had set on registry key
Pretty basic set-up. I'm creating a number of textboxes, all calling a function during
I have something like this: uses MSXML2_TLB; type TDocumentType = (dtOrder, dtInvoice, dtStatus, dtError);
I have have a simple HTML form with say four input widgets (see below)...two
I have a dropdownlist (asp.net) and when user change the selection and i want
I have a dropdownlist (asp.net) and when user change the selection from the dropdownlist
I'm a noob to calling WCF web services, so am hoping this is an

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.