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.
Use following way,