Posted by Stefan Mueller on 11/16/05 17:39
On my HTML page I can add hidden fields by pressing a button (JavaScript).
The names of the newly added hidden fields are
hidden_field_001
hidden_field_002
hidden_field_003
hidden_field_...
By clicking another button (JavaScript) I can remove some hidden fields
again.
If I'm finished then I press the submit button (method="post").
With the PHP script I try to read the hidden fields:
for ($i = 0; $i <= 9; $i++) {
$array[$i] = $_POST['hidden_field_00' . $i];
}
However, my problem is how to figure out within PHP if the hidden field
still exists or if I've deleted it before.
Stefan
[Back to original message]
|