Re: [PHP3] minor problem with javascript and php
| From: | Jonas Jochum | Date: | Thu, 06 Jan 2000 00:53:59 +0000 |
| Subject: | Re: [PHP3] minor problem with javascript and php | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-8941@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Am 05.01.00, um 17:49 schrob jemand namens Sterling Hughes etwa folgendes:
SH>Use javascript to access the item by index:
SH>document.forms[0].elements[elementNum].value = 'something';
Already thought of that, too. The problem however is, that I don't always
know at which position the input field is... The complete form is created
using a template, where the variables (like {FOO}) can be placed at any
position. So I could have something like the following:
<form ...>
{FOO} /gets replaced by <input ... name="foo[foo]">
{BAR /gets replaced by <input ... name="foo[bar]">
</form>
or
<form ...>
{BAR}
{FOO}
</form>,
so using the index is not an option unfortunately :(
- --
Regards,
Jonas Jochum
commandline net services cmd:~ # Systemadministration, Netzwerkverwaltung
cmd:~ # Einrichtung von FreeBSD/Linux-Servern
cmd:~ # Datenbank/Internetprogrammierung
cmd:~ # Webdesign
tel: 07223-911794
fax: 07223-911795
web: http://www.commandline.de
mail: jj@commandline.de
-----BEGIN PGP SIGNATURE-----
Version: 2.6.3i
Charset: noconv
Comment: Made with pgp4pine
iQB1AwUBOHPnq+VY1/wBqHQBAQHj3gMAub3XwT3QJ/YZqo60xf9w/LagXQT/5abe
T/dYo2MiQdqjU7+LZedDd81UzOUZOgkFWSScX1Pb++b5HIks58F58CHY/rYhp6WT
E6afJ6r22blqalMQorGEEOVCAH8Sr279
=YeDe
-----END PGP SIGNATURE-----