Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if ($username && $userid){
- echo "You have logged in as <b> $username </b>. Click here to <a href='logout.php'> Logout </a>";
- }
- else {
- $form = "<form action= 'index.php' method='POST'>
- <table>
- <tr> <td> <font color='black' face='arial' size='3'>Username: </font> </font></td> <td> <input type='text' name='user' placeholder='Username' > </td>
- <td> <font color='black' face='arial' size='3'>Password: </td> </font><td> <input type='password' name='password' placeholder='Password'></td>
- <td> <button type='submit' class='btn' name='loginbtn' value ='Login'><font size='3'>Login</font> </td></button>
- <tr><td> <a href='signup.php'> <font color='black' face='arial' size='3'>Register</font> </a> </td> </tr>
- </table>
- </form>";
- <table style=" background-repeat:no-repeat; width:450px;margin:0;" cellpadding="0" cellspacing="0" border="0">
- <tr style="height:40px; width:450px; margin:0;">
- <td style="height:40px; width:40px; margin:0;">
- echo '<table class="myClass">';
- .myClass{
- top: 15px;
- left: 10px;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement