Jump to content
Science Forums

Php Methods


Recommended Posts

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.

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...