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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:40:32+00:00 2026-06-13T18:40:32+00:00

my code starts with multiple php arrays with XML data being passed through multiple

  • 0

my code starts with multiple php arrays with XML data being passed through multiple checkboxes in the following way($i cycles through items in XML doc, values pass specific data in row i that is selected):

$MoneyLine = $event->periods->period[0]->moneyline; //background info
$AwayMoneyLine[] = $MoneyLine->moneyline_visiting;  //background info
<input type='checkbox' name='AwayMoneyLine'   value='$Date[$i];$AwayRotNum[$i];$AwayParticipantName[$i];$ATotalPoints[$i]'/>  

On my next page, I pass the variables in the following manner, but they are not resulting on the next page.:

if(isset($_POST['AwayMoneyLine'])){  
foreach($_POST['AwayMoneyLine'] as $value) {   
$d = explode(';',$value);    
echo '<input type="hidden" name="hidden[]" value="$d[0];$d[1];$d[2];$d[3];$d[4]">';  

Here is how I’m attempting to get the data on the next page. Any suggestions on how I can pass the variables through to this page? On the form (also on var_dump of $d), I get $d[0], $d[1], etc. Any help is greatly appreciated!:

foreach($_POST['hidden'] as $value) {  
$f = explode(';',$value);  
echo 'Here is your following bet:';  
echo '<table cellpadding="0" cellspacing="0" border="1" bordercolor="#585858" width=100%>';  
     echo "<tr><td>$e[0]</td><td>$f[0]</td><td>$f[1]</td><td>$f[2]</td><td>$f[3]</td><td>$f[4]</td></tr>";  
}  
echo '</table>';
  • 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-13T18:40:32+00:00Added an answer on June 13, 2026 at 6:40 pm

    Change the code to:

    echo "<input type=\"hidden\" name=\"hidden[]\" value=\"$d[0];$d[1];$d[2];$d[3];$d[4]\">";  
    

    $d[0];$d[1];$d[2];$d[3];$d[4] will not be printed as you put inside single quote. You should use double quote and escape attributes like type=\”hidden\”, name=\”hidden[]\”, etc.,

    eg:

    <?php
    
    $name = 'foo';
    echo "$name";
    echo '<br />';
    echo '$name';
    ?>
    

    Output:

    foo
    $name
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have the following JavaScript/jQuery code that starts the listener that highlights the DOM
Suppose I have a line of code that starts like the following: Func1(Func2(Func3 Is
The following piece of code runs fine when parallelized to 4-5 threads, but starts
I'm using php with smarty. In php I have two arrays: $code = Array
I cannot retrieve multiple files in my php code from $_FILES. Here is the
I use the following code to make Propel 1.4 works in a php file.
I am facing a strange problem. My PHP page has following code. echo <div
I'm trying to download multiple files in a zip archive using PHP/codeigniter.This code works
I've the following Javascript code : <script> var auto_refresh = setInterval( function() { $('#loaddiv').load('tables.php');
I have the following code in a PHP page. Some times when I delete

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.