Justtechjobs.com Find a programming school near you






Online Campus Both


php3-list | 199807

Re: [PHP3] Figuring out which variables who are sent to a page.. From: Brian S. Craigie (Brian.Craigie <email protected>)
Date: 07/10/98

On 10-Jul-98 Brd Kregnes wrote:
> Colin Viebrock wrote:
>>
>> Also sprach Brd Kregnes (at 03:38 PM 7/8/98 +0200) ...
>> >Hi there!
>> >
>> >My problem is:
>> >
>> >I know this will be solved using arrays, but I'm using a javascript
>> >which won't work / can't access the values if I'm using an array..
>>
>> Yes you can ... you just can't refer to them as:
>> document.formname.elementname.value
>>
>> You need to refer to them as:
>> document.formname.elements[1]

I think you need

<SELECT NAME="i_iProsjektNr[]" ONCHANGE=
"VisTimePris(window.document.TIME_REGISTRERING.i_iProsjektNr[0].value,0)">
                                                               ^^^^^^
<OPTION>3 MKS support</OPTION>
<OPTION>2 dagens prosjekt</OPTION></SELECT>

You could simplify window.document.TIME_REGISTRERING to this.form

Also look up the selectedindex property at
http://developer.netscape.com/docs/manuals/communicator/jsguide4/index.htm

Cheers!

Brian

--
PHP 3 Mailing List   http://www.php.net/
To unsubscribe send an empty message to php3-unsubscribe <email protected>
To subscribe to the digest list:  php3-digest-subscribe <email protected>
For help: php3-help <email protected>  Archive: http://www.tryc.on.ca/php3.html