I am having an issue understanding somthing quite simple about a login form. I see all these tutorials, and they put everything in a php file, but then how do I get this displayed in my html. I would of though I have my normal html page, with a form for login, and when the submit button is pressed, it then calls up the php check login page. I suppose I am just struggling with integrating the two languages.
I could understand it better if things were done the way I imagined it. For example, I have this from a tutorial
Code: Select all
2. Create file main_login.php.
———————————————————————–
<table width=”300? border=”0? align=”center” cellpadding=”0? cellspacing=”1? bgcolor=”#CCCCCC”>
<tr>
<form name=”form1? method=”post” action=”checklogin.php”>
<td>
<table width=”100%” border=”0? cellpadding=”3? cellspacing=”1? bgcolor=”#FFFFFF”>
<tr>
<td colspan=”3?><strong>Member Login </strong></td>
</tr>
<tr>
<td width=”78?>Username</td>
<td width=”6?>:</td>
<td width=”294?><input name=”myusername” type=”text” id=”myusername”></td>
</tr>
<tr>
<td>Password</td>
<td>:</td>
<td><input name=”mypassword” type=”text” id=”mypassword”></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td><input type=”submit” name=”Submit” value=”Login”></td>
</tr>
</table>
</td>
</form>
</tr>
</table>Could someone please enlighten me on what I am missing here. I have created a html file and I have a nice page, can I just use the above code in my html page, to create my login form, and keep it html?
Is it a mistake them calling it php? Any advise severely appreciated
cheers