I’m so close!!
I can’t figure out how to post these values. Here’s what I’ve got:
<form action="process.php" method="post">
<?php
foreach (array_combine($UndefinedEvents, $EventDates) as $event=>$dates){
echo "This Event does not have a Timeline associated with it: " .$event . " on ".$dates. '<br>';
echo "Choose a Timeline:<br>";
?>
<?php echo "<select name=".$EventID[$i].">"; ?>
<option selected = "selected"></option>
<?php foreach (array_combine($TimelineID, $UserTimelines) as $temptimelineID=>$timeline){
echo "<option value=".$temptimelineID."> ".$timeline. "</option>";
}
echo " </select><br><br>";
$i = $i+1;
}
?>
<input type="submit" />
</form>
There’s a lot happening above, but the markup is giving me what I want. Here’s an example of what the above looks like:
<form action="processGoogle.php" method="post">
This Event does not have a Timeline associated with it:
First Event on 2011-07-01 00:00:00
<br>
Choose a Timeline:
<br>
<select name=3576> //THIS is $eventID
<option selected = "selected"> </option>
<option value=257> Timeline One </option>
<option value=258> Timeline Two </option>
<option value=259> Timeline Three </option>
</select>
<br>
<br>
This Event does not have a Timeline associated with it:
Next Event on 2011-06-30 00:00:00
<br>
Choose a Timeline:
<br>
<select name=3573>//THIS is $eventID
<option selected = "selected"> </option>
<option value=257> Timeline One </option>
<option value=258> Timeline Two </option>
<option value=259> Timeline Three </option>
</select>
<br>
<br>
...
<input type="submit">
</form>
What I need to do is post the value for $EventID and $temptimelineID.
What do I need to do to pass that information in post, and what do I need to have in my process.php form to read it?
Thanks for any help!
Looks like you have variable $_POST. Try