Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @app.route("/Half1Tab")
- def Half1Tab():
- return """<html>
- <head>
- <style>
- body {
- background-color: lightblue;
- }
- </style>
- </head>
- <body>
- <p style="font-size: 300%;line-height:13px;color:#140cf0;">Input your "Email"</p>
- <br />
- <form action="/Half1File" method="post">
- <input style="font-size:50px;"name="Name"; type="text"/>
- <br />
- <br />
- <br />
- <br />
- <input type="submit" value="Submit" style="font-size: 300%;height: 100px; width: 300px; left: 250; top: 250;">
- </form>
- </body>
- </html>"""
- @app.route('/Half1File', methods=['POST'])
- def Half1File():
- print(request.form)
- print(request.form['Name'])
- Name = request.form['Name']
- Email = Name.split(@)
- Email = Email[1]
- if Email == "{yourschoolemail}.com":
- return """<html>
- <meta http-equiv="refresh" content="1; url=/{LoggedInLandingPage}" />
- </html>"""
- else:
- return """<html>
- <meta http-equiv="refresh" content="1; url=/{FailedLandingPage}" />
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement