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