You are here: Re: loading a form on button click (client-side) « PHP Programming Language « IT news, forums, messages
Re: loading a form on button click (client-side)

Posted by Juliette on 07/06/06 00:59

monomaniac21 wrote:
> Alvaro G. Vicario wrote:
>> *** monomaniac21 escribió/wrote (4 Jul 2006 08:45:25 -0700):
>>> hi can anyone show me how to load a simple form (i.e. make its contents
>>> visible) on the click of a button (not in that same form)
>> My answer would be that you only need to specify the URL in the 'action'
>> attribute of the 'form' tag and make the button of 'submit' type, but
>> that's basic HTML, not PHP at all; so I guess I don't understand you :-?
>>
>> --
>> -+ http://alvaro.es - Álvaro G. Vicario - Burgos, Spain
>> ++ Mi sitio sobre programación web: http://bits.demogracia.com
>> +- Mi web de humor con rayos UVA: http://www.demogracia.com
>> --
>
> I know that but i want to use a client side function to cut down on
> server load (i.e. javascript)
>

Not a php, let alone server-side question, but...

www.quirksmode.org has lots of DHTML (javascript + CSS ) code which
should inspire you enough to write your own solution.

Think along the lines of:
* catching the submit action with javascript
* setting display: none; to display: block; for the form you want to show

Be wary though - if a user has javascript turned off, your actions will
fail.

Good luck,
Juliette

 

Navigation:

[Reply to this 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

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