Jump to content

zmasta101

New Members
  • Posts

    1
  • Joined

  • Last visited

Profile Information

  • Gender
    Not Telling

zmasta101's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. <?php function FormLogin() { $html = " <form method='post' name='forml' action='index_1.php?s=login'> <input type='hidden' name='dologin' value='1'> <input type='text' name='email' value='email' onfocus=\"if (this.value=='email') this.value='';\"/> <input type='password' name='password' value='password' onfocus=\"if (this.value=='password') this.value='';\"/> <input type='submit' name='login' id='submit' value='SIGN IN' class='submit'> <a class='dark' href='index_1.php?s=remindpass'>FORGOT PASSWORD</a> <script language='javascript'> document.forml.email.focus(); </script> </form> "; return $html; } echo FormLogin(); ?> The above example works. Since you are only returning $html in the function, make sure you are using either print or echo so it will output to the screen
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.