Reply to Re: Dynamic Form Items

Your name:

Reply:


Posted by nice.guy.nige on 05/11/05 17:05

While the city slept, Angelos (angelos@redcatmedia.net) feverishly typed...

> Hello there

Hi

> I am trying to create A form that its fields will depend
> on a form menu.
> for example.
[...]
> When the option 1 is selected only the textfields 1 and 2 to appear,
> when option 2 is selected only textfields 1 and 3 to appear and so
> on... any combination I would like.

I'm afraid I can't imagine how you are going to achieve this using PHP, as
PHP does its work on the server, then delivers the page source to the user.
You would be better looking for a client-side solution (eg. javascript) for
this, such as the following list of options on Google:
http://tinyurl.com/9oopm

Just remember that not all users will have javascript turned on (or even
available to them), so make sure that your form will still work without it.

Hope that helps.

Cheers,
Nige

--
Nigel Moss http://www.nigenet.org.uk
Mail address will bounce. nigel@DOG.nigenet.org.uk | Take the DOG. out!
"Your mother ate my dog!", "Not all of him!"

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация