Show content after button is pressed and chk box is checked

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
nite4000
Forum Contributor
Posts: 209
Joined: Sun Apr 12, 2009 11:31 am

Show content after button is pressed and chk box is checked

Post by nite4000 »

Hey

I am trying to get a form to work where the user has to check a check box and press submit and everything. I have that part working. I need help to once the button is click to show other content on the same page otherwise it hides it until they check and press the button.

Thanks
davex
Forum Contributor
Posts: 101
Joined: Sat Feb 27, 2010 4:10 pm
Location: Namibia

Re: Show content after button is pressed and chk box is checked

Post by davex »

Hi,

Sounds like what you're actually after is a JavaScript function that can show content when the button is clicked.

Try googling for something like "show or hide div javascript" - there are plenty of examples on how to do this, usually by manipulating the display CSS property.

Cheers,

Dave.
Post Reply