...

View Full Version : Javascript Help



Kylbarnes
08-26-2004, 03:23 AM
I'm new to javascript and need some quick help. Been doing php/html, etc... for years though.

I'm developing a script and need some quick advice on how to do something on the login portion. It has 2 boxes, login name and pass. And right below that, i have a checkbox that says "create account". Now when they click on that checkbox, i would like 2 more input boxes to appear below where they fill in their name... and their email address. Both of which can be passed as post vars when they hit submit. Then if they uncheck that box, i need it to erase those 2 new boxes.

Before
============
Username: ____________
Pass: ____________
[_] Create Account?
[SUBMIT]
============

Onclick
============
Username: ____________
Pass: ____________
[X] Create Account?
Full Name: __________
Email: __________
[SUBMIT]
============

Uncheck
============
Username: ____________
Pass: ____________
[_] Create Account?
[SUBMIT]
============

Any help would be GREATLY appreciated. :)

-Kyle

Kylbarnes
08-26-2004, 06:15 AM
Nevermind, was able to figure out something. Thanks anyways.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum