Re: newbie: Dynamic forms

From: Date: Fri, 28 Feb 2003 09:43:53 +0000
Subject: Re: newbie: Dynamic forms
References: 1  Groups: php.windows 
Request: Send a blank email to php-windows+get-18753@lists.php.net to get a copy of this message
As already mentioned this is client side stuff (i.e. Javascript, or dare I say it... VBScript ;). But as a pointer... JAVASCRIPT: function ShowHide(checkBox, txtBox) { if (checkBox.checked) { txtBox.disabled = true; } else { txtBox.disabled = false; } } HTML: <input type="checkbox" name="selector" value="1" onclick="ShowHide(this, txtName)"> <input type="text" name="txtName"> Cheers Mike -- Michael Power Software Developer Concentrix Limited _______________________________________ Helping you strengthen your customer relationships To find out more about how we can help you visit our website http://www.concentrix.co.uk The Technology Centre, Epinal Way, Loughborough, Leicestershire, LE11 3GE T: +44 (0)1509 235000 F: +44 (0)1509 221740 _______________________________________ "Edward David" <edavid@ucalgary.ca> wrote in message news:20030227150815.5754.qmail@pb1.pair.com... > Hi, > > I am trying to create a form that has checkboxes displayed. > If the box is checked then show below the checkbox input items related to > the parent checkbox. > If the user has not entered his name then do not display the submit button. > Can this be done using PHP 4.3.1 under Windows and IIS. > > Pls. help. Thanks. > > >

« previous php.windows (#18753) next »