J
Jan Novak
Hello,
a have a (php/html) Form with multiple Buttons und multiple input fields.
The Buttons and Fields are generated like this
(php code)
echo '<input name="USERNAME_'.$id.'" class="Feld" value="'
..$record['USERNAME']. '" autocomplete="off" >';
Now i want, that if i click on a button, that one of the filed is filled
up with some data.
(php code)
echo '<input type="button" name="zeige" class="Button" value="Show"
onclick="this.form.USERNAME_'.$id.'.value=\''.$record['USERNAME'].'\'">
';
This function is only working, if the Textfiled is named without the
"id" extension (like 'Username" and not 'Username_'.$id)
Anybody know a solution for this ?
Jan
a have a (php/html) Form with multiple Buttons und multiple input fields.
The Buttons and Fields are generated like this
(php code)
echo '<input name="USERNAME_'.$id.'" class="Feld" value="'
..$record['USERNAME']. '" autocomplete="off" >';
Now i want, that if i click on a button, that one of the filed is filled
up with some data.
(php code)
echo '<input type="button" name="zeige" class="Button" value="Show"
onclick="this.form.USERNAME_'.$id.'.value=\''.$record['USERNAME'].'\'">
';
This function is only working, if the Textfiled is named without the
"id" extension (like 'Username" and not 'Username_'.$id)
Anybody know a solution for this ?
Jan