Hi..
I have a setup of:
input text, button, checkbox
input text, button, checkbox
input text, button, checkbox
input text, button, checkbox
input text, button, checkbox
etc
The idea is that I enter some data and tick the checkbox (or not).. then press the button to validate the data...
what I have at the moment is:
$Data = array(array text => "first", ticked => 't'));
for ($i = 0; $i<10; $i++){
<td><input type="text" name="Text[$i]" size="15" value="<?php echo $Data[$i]["text"] ?>"></td>
<td><input type="button" value="Validate Text" class="InputButton"
onClick="FormChangeAction('Validate'); FormSubmit();"></td>
(ie javascript that says action = validate)
<td><input type="checkbox" name="Print[$i]" <?php if ($Data[$i]["ticked"] == "t") echo " checked" ?>></td> }
So if theres no data in the array a blank input text box and an empty checkbox appear.
Say I enter data into the 3rd box down.. and press the button... how do I say "3rd button was pressed get Text[3]"??
Any ideas?