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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T22:57:50+00:00 2026-06-18T22:57:50+00:00

the jquery : $(#btnSaveForm).click(function(){ … $.post(‘../optional/setup/processItemcn.php’, $(#FormTemplate).serialize(), function(data) { alert(data); }); … }); the

  • 0

the jquery :

$("#btnSaveForm").click(function(){
...
$.post('../optional/setup/processItemcn.php', $("#FormTemplate").serialize(), function(data) {
     alert(data);
});
...
});

the php with form :

<form id="FormTemplate" class="FormTemplate">
  <input type="text" name="kode_item[]" value="1" />
  <input type="text" name="kode_item[]" value="2" />
  <input type="text" name="kode_item[]" value="3" />
  .
  .
  <input type="text" name="kode_item[]" value="197" />
</form>

the php on serverside :

$ID = $_POST["kode_item"];
$count = count($ID);   
echo "$count";

I’ am trying to send all array data from the form to the serverside using jquery post and serialize.
I have total items array of kode_item = 197 items, but after sending it to serverside and then I check and echo it from server side the result of $count = 167 items. that’s why I cannot update data that related to kode_item > 167 because it will not processed on serverside. anyone have any ideas ?

  • 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-06-18T22:57:52+00:00Added an answer on June 18, 2026 at 10:57 pm

    The solution is come up from my webhosting technician.

    The array data that send from form to the serverside is getting too long, then.. suhosin limiting the array data that will be sended.

    This way work for me. Adding this two line to php.ini:

    suhosin.post.max_vars = 1500
    suhosin.request.max_vars = 1500
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

jquery looks like this $.post('JSP/processForm.jsp', $(#Form).serialize(), function(data){ //I want to iterate through every line
jQuery code: function ajaxsubmit(){ $.ajax({ url: /update, type: POST, dataType: html }).success(function(data) { $('#result').html(data);
jQuery $(input[type=checkbox]:checked).live(click, function (e) { var data = $('.variation:checked').map(function (i, n) { return {
jQuery $.ajax({ url : /assets/inc/list.php, success : function (data) { console.log($(data).filter('li').size()); } }); Using
Jquery did not carry out!!!I don't know why $(.other-edithion).click(function(){ var city = $(this).closest('#city'); if
jQuery code add new virtual object .add to object .main $(document).ready(function(){ $('.main').on('click', '.add', function
jQuery-File-Upload Upload script: $('#fileupload').fileupload({ url: 'api/combox_upload.php', type: 'POST', dataType: 'json', dropZone: $dropZone, singleFileUploads: true,
jQuery.get(window.location.href, function(data) { alert(data); alert($(data).html()); }); The first popup is all the HTML good
jQuery: $(document).ready(function() { $(a.change_status).click(function(){ var status_id = $(a).val(); alert(status_id); return false; }); }); HTML:
jQuery $('a.popup').click(function(){ window.open( this.href, 'Page title', 'width=600, height=650' ); return false; }); HTML <a

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.