Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>Teachers</title>
- </head>
- <body>
- <form action="teachers.php" method="post">
- Search for teachers containing the following:
- <input type="text" name="name">
- <br>
- <input type="submit" value="Submit">
- </form>
- <br>
- <form action="addteacher.php">
- <input type="submit" value="Add new teacher">
- </form>
- <h3>Teachers</h3>
- {% if searched == true %}
- <p>You searched for names containing {{ searchedName }}</p>
- {% endif %}
- <ol>
- {% for teacher in teachers %}
- <li> Teacher ID: {{ teacher.Id }} <br> Name: {{ teacher.Name }} <br> Mobile No.: {{ teacher.MobileNo }} <br><br></li>
- {% endfor %}
- </ol>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement