[PHP-WIN] Re: newbie: dynamic forms

2003-02-28 Thread Michael Power
You appear to have a twitch... ;) Mike > "Edward David" > > 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

[PHP-WIN] Re: newbie: Dynamic forms

2003-02-28 Thread Michael Power
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: Cheers Mike -- M