<?php
<html>
    <img src="ecycle.png" alt="logo of recycling award scheme">
    <form action= "login.php" method="POST">
    <body>
    <p>Enter your information to creat your account</p>
   <form action="confirm.html" method="Post">
   Name:<input name="Name" type="text" /><br />
   Password:&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<input name="Password" type="password" /><br />
<input name="Submit" type="submit" value="Submit" /></form>
</body>
</html>

<?php
$uname=$_POST ["uname"];
$pw=$_POST|"'pw"];
$server='localhost';
$dbname='stmarksi_ict';
$username='stmarksi';
$password='u8iiT4:-RiJM74';
§link=mysqli_connect($server, $username, $password, $dbname) ;
if($link) {
$query="SELECT pw, teacher, id FROM sms25002 WHERE username='$uname'"; sexecute=mysqli.
？>
<h1>Recycling Award Scheme</h1>
‹form action="main.php" method="post">
‹table>
<tr>
<td>Username: </td>
<td><input class="boxes" type="text"
name="uname"></td>
<tr>
<td>Password: </td>
<td><input class="boxes" type="password" name="pw"></td>
</tr>
<tr>
<td colspan="2">
<input type="submit" value="Enter">
</td>
</tr>
</table>
</form>
<?php
｝
else {
？>
<p>Connection failed</p>
<?php
｝