I have a form that looks like the following:
<form action="results.php" method="get">
<input type='checkbox' name='batch[]' value='1'>
<input type='text' name='job_id[]' value='111'>
<br>
<input type='checkbox' name='batch[]' value='1'>
<input type='text' name='job_id[]' value='999'>
</br>
<input type='submit' name='submit' value='Submit'>
</form>
In the example below I have only selected the row with 999 in the textbook.
The results are displayed in the results.php page which code looks like this:
<?php
$batch = $_GET['batch'];
$job_id = $_GET['job_id'];
foreach($job_id as $key => $value) {
echo $batch[$key]." ";
echo $value."<br>";
}
?>
The above code displays like this:
1 111
999
As you can see the 1 (checkbox) is next to 111. I want to be able to allow send across the job_id from the row selected.
Hopefully I have explained the problem well enough.
Many thanks,
John
