Re: How to make a SELECT submit without a BUTTON?

From: Date: Wed, 07 Nov 2001 09:30:20 +0000
Subject: Re: How to make a SELECT submit without a BUTTON?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-73703@lists.php.net to get a copy of this message
Javascript: <form name="hello" action="..."> <select name="..." OnChange="hello.submit()"> ... </select> </form> "De Necker Henri" <deNeckerH@ford.co.za> ha scritto nel messaggio news:3A8ED7A62794D311AA7700508B6164EC08DCA378@SCPTS01... > Hi there.I just want some ideas of how to make a Select in html submit a > single value to the same page without using a button. > I have two different dynamiclly Select's whose values depends on this one > select.A user only has to select an value then the other two select's values > must change without any buttons! > this is what i have tried : > > <form action = "test_dummy.php" method="post"> > <select name="dropDown1" size="1"> > <option selected > value="0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; > --- none ---</option> > <option value="Bodyshop">Bodyshop</option> > <option value="Material_supply">Material supply</option> > <option value="Paint_shop">Paint shop</option> > <option value="Vechile_assembly">Vechile assembly</option> > <option value="Warehouse">Warehouse</option> > </select> > </form>

« previous php.general (#73703) next »