Page 1 of 1

PHP Hiding a button

Posted: Sun Jul 22, 2012 4:52 am
by jrdc2
Im trying to hide the Signup button after the user clicking it. and also to login button i want to hide the login button after cliking it and logging in. Please help me :(

<input type='button' value='SIGN-UP' onClick="window.location.href='Shops_registration.htm'" >
<input type="button" value="LOG-IN" onClick="window.location.href='Shops_login2.htm'">

Re: PHP Hiding a button

Posted: Sun Jul 22, 2012 8:50 am
by social_experiment
You need to use javascript for this; Give the buttons a id value and the use a bit of jQuery

Code: Select all

 // untested but should convey the idea
 $('input#idValue').click(function(){
    $('input#idValue').fadeOut();
 });