You cannot do that using a server side language like PHP. You must do it using Javascript, or another client side programming language.
Octavian----- Original Message ----- From: "Peter Donahue" <pdonahue1@xxxxxxxxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx> Sent: Monday, November 26, 2007 1:29 AM Subject: Re: Scripting to hide text field
Hello Jaffar, This particular site was created using PHP. Another site I have is .shtml. I was thinking JavaScript, but can this be done using PHP? This is where I could use some enlightenment as to the best language to use for creating such a function. Thanks. Peter Donahue----- Original Message ----- From: "jaffar" <jaffar@xxxxxxxxxxxxx>To: <programmingblind@xxxxxxxxxxxxx> Sent: Sunday, November 25, 2007 5:25 PM Subject: Re: Scripting to hide text field Hi Peter. In which language would you be scripting this form? Cheers!----- Original Message ----- From: "Peter Donahue" <pdonahue1@xxxxxxxxxxxxx>To: <blindwebbers@xxxxxxxxxxxxxxx> Cc: <nfb-web@xxxxxxxxxx>; <programmingblind@xxxxxxxxxxxxx> Sent: Monday, November 26, 2007 7:03 AM Subject: Scripting to hide text fieldHello again everyone, I will be building a contact form for one of my Web sites. The form will contain a select box with options the user must select. If the user selects the, "Other" option I want them to be able to enter the desired information in a text field to appear below the selection box. Otherwise I don't want this field to show if the, "Other" option is not selected. Can you point me to sources for scripting to perform this function within a form, or send me code samples of such forms? I'll appreciate that very much. Peter Donahue __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind__________ View the list's information and change your settings at //www.freelists.org/list/programmingblind __________ View the list's information and change your settings at //www.freelists.org/list/programmingblind
__________View the list's information and change your settings at //www.freelists.org/list/programmingblind