Re: Scripting to hide text field

  • From: "jaffar" <jaffar@xxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Mon, 26 Nov 2007 07:46:45 +0800

Hi Peter. There is no reason why you couldn't use javascript and php in tandem. All you need do is put in an include statement in your php file which will trigger your javascript file to invoke any script you have written. In answer to your question, you could write the application you were asking about, both in javascript and in php. I'll see if i can dig out a sample for you from one of my ex-client's web applications. You can then modify it to your liking. Give me a day or two and I'll see what i can come out with. In the meantime, you might perhaps want to google for answers to your question because there are lots of tutorials on creating dynamic web forms out there in cyber space, in whatever web scripting language you desire. HTH. Cheers! ----- Original Message ----- From: "Peter Donahue" <pdonahue1@xxxxxxxxxxxxx>

To: <programmingblind@xxxxxxxxxxxxx>
Sent: Monday, November 26, 2007 7: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 field


Hello 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

Other related posts: