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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:29:24+00:00 2026-06-17T12:29:24+00:00

Please, look at this PHP script (sendingpage.php): $i=1; While(whatever){ echo <input id=’ref.$i.’ type=’hidden’ value=’.$variable.’

  • 0

Please, look at this PHP script (sendingpage.php):

$i=1;

While(whatever){

echo "<input id='ref".$i."' type='hidden' value='".$variable."' />";
echo "<input id='ref2".$i."' type='hidden' value='".$variable2."' />";
$i++;

}

Now, what I want to do is passing all values to another php page (receivingpage.php) using the JQUERY AJAX method and after processing the received data in receivingpage.php loading the result in my sendingpage.php. Note that I do not know how many cicles this script will generate nor what values $variable and $variable2 will hold at each cicle.

I think I can go through all the final loading thing, but where I’m having troubles is at passing all values from sending.php to receiving.php using AJAX/JQUERY

I hope any of you throw some light on it for me. I would be really grateful.

  • 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-17T12:29:25+00:00Added an answer on June 17, 2026 at 12:29 pm

    If this is inside a <form> then you can use serialize function to pass it as a data in ajax call.
    like

    $.ajax({
         type :'POST',
         data:$('#formId').serialize();
         ...so on
    }) 
    

    It is also recomended to set type to post as it will allow you to send it as post request and will send all form fields in the request.

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

Sidebar

Related Questions

please take a look of this, the file demo.php is an example of the
I have a PHP code: if($billing_total>$limit_to_send){ echo '<script type=text/javascript> window.onload = function() { alert(Sorry,
I have a problem with internet explorer 6 and 7, please look this example
please look at this example of drop down checkbox list im working on.. http://jsfiddle.net/Yojik/VJHVK/143/
Please look at this image here is 3 tables , and out i want
Please look at this code: @interface myObject:NSObject -(void)function:(id)param; @end @implementation myObject -(void)function:(id)param { NSLog(@BEFORE);
Please look at this fiddle: http://jsfiddle.net/dyv88/16/ On IE7, if I put width: 100% on
Please look at this picture: Is it possible to find per-column sum for all
Please look at this code: def chop(array, search): lo = 0 high = len(array)
Look please below this codes throw me : FormatException was unhandled by user code

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.