<?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