From: Stephane Pinel <[EMAIL PROTECTED]>
Date: Wed, Aug 29, 2001 at 11:08:45AM +0200
Message-ID: <[EMAIL PROTECTED]>
Subject: [PHP] Update form objects before submit
> I have a html page including php scripts that perform different stuff.
> The page contains a form (a Select 'products-price' and a field 'qty').
> Depending the choice made by the user, I need to know what item in the
> SELECT object was choose and the number entered in the 'Qty' field to
> initialized a 'subtotal' zone BEFORE the user submit the form.
> This functionality is common to all e-business sites when you have to clic
> on the 'update' button before submit the form.
>
> Any idea ?
>
> thanks
>
> --
> Stéphane Pinel
> 39, Rue du Docteur Heulin
> 75017 Paris (FRANCE)
> 33 1 53 11 05 77
> 33 6 08 94 63 16
> [EMAIL PROTECTED]
> --
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
You'll need to use JS...
Eg:
--- HTML example ---
Blah 1
Blah 2
Blah 3
Blah 4
function someUpdateFunc () {
var selValue = document.frm.mySel.options[document.frm.mySel.selectedIndex].value;
alert ("You selected: "+selValue);
}
--- End of HTML example ---
This will show you what you need (I hope)...
--
* R&zE:
--
-- Renze Munnik
-- DataLink BV
--
-- E: [EMAIL PROTECTED]
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
--
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]