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

The Archive Base Latest Questions

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

I found a few similar examples, but none specifically applicable to my case. On

  • 0

I found a few similar examples, but none specifically applicable to my case.

On my form page, I have multiple checkbox inputs in the following format:

<input type='checkbox' name='AwayMoneyLine[]     value='$Date[$i];$VisitingRotNum[$i];$VisitingParticipantName[$i];$AwayMoneyLine[$i]'/>  

The checkboxes loop through each XML data set for each $i. When submitted, I would like to display the values in a form. Here is some code I am using:

 if(isset($_POST['AwayMoneyLine'])){   
     $bet_type1="Moneyline";  
     $NewDate1 = $_POST['$AwayMoneyLine[0]'];  
     $NewRotation1 = $_POST['AwayRotNum'];  
     $NewTeamParticipant1 = $_POST['AwayParticipantName'];  
     $NewBet1 = $_POST['AwayMoneyLine'];  
     $NewSpread1 = "";  
     var_dump($NewBet1);  
     echo "<tr><td>$bet_type1</td><td>$NewDate1</td><td>$NewRotation1</td><td>$NewTeamParticipant</td><td>$NewBet1</td></tr>";  
}  

However, none of the values display. I know the values are being passed as

var_dump($NewBet1);  
// gives array(1) { [0]=> string(39) "10/31/2012 20:10;703;Denver Nuggets;100" }

Any help breaking down these values, assigning them to variables and displaying them would be greatly appreciated.

  • 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-13T16:21:33+00:00Added an answer on June 13, 2026 at 4:21 pm

    Use following way,

    if(isset($_POST['AwayMoneyLine'])) {
        foreach($_POST['AwayMoneyLine'] as $value) {
          $d = explode(';',$value);
          echo $d[0]."<br>"; //this gives date
          echo $d[1]."<br>"; // this gives rotation
          echo $d[2]."<br>"; // participant name
          echo $d[3]."<br>"; // bet
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I found a few questions similar to this one here on SO, but none
I have found a few posts that seem similar to what I need, but
Looked around and found a few similar questions but none of them were the
I have found a few good replies to similar content so far, but never
I've seen a few examples of similar situations on here, but haven't found anything
This is similar to a few other threads i have found, but I haven't
God, Linq confuses me... I've found quite a few examples that do similar things
I have question regarding disabling browser caching. I have already found few solutions, and
I've found a few other people asking this question, but the answers for their
I've found a few answers for this using mySQL alone, but I was hoping

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.