codecruiser9999 Posted January 8, 2009 Report Posted January 8, 2009 Is there a way in to show and hide the form like being done in visual basic creating an object and instantiating its properties and methods.For instance MyForm.Show and MyForm.Hide i just want to create this for security reason just when u want someone to login in your login form when his /her information is right when authenticating i will show the form or appllication he/she must use by instantiating the method .show.What i want to know if theres a way in PHP doing this or just use function require to the same thign for this.Any enlightment abou this will be greatly appreciated thank you. Quote
Tormod Posted January 8, 2009 Report Posted January 8, 2009 You would use DOM scripting and CSS visibility for that. for example <script type="text/javascript"> <!-- function toggle_visibility(id) { var e = document.getElementById(id); if(e.style.display == 'block') e.style.display = 'none'; else e.style.display = 'block'; } //--> </script> You call this function like this: <a href="#" onclick="toggle_visibility('foo');">Click here to toggle visibility of element #foo</a> <div id="foo">This is foo</div> Source: Toggle Visibility - Show/Hide Anything | Movalog Blog: Making Movable Type Jump Through Hoops Quote
alexander Posted January 8, 2009 Report Posted January 8, 2009 php is a server-side language, it deals with processing data, not displaying it... Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.