-1

There's a concert on my school, which I will be live streaming. Instead of going to a link like youtu.be/83djae, I want people to go to something simple where they will have to enter a password. If they enter the right password, then they will be redirected to YouTube, if the password is wrong, then they will be asked to write it again.
This is my code so far:

<html>
<form>
<p>Password:</p>
<input type="text" name="password">
</form>
</html>

It doesn't have to be pretty or something, just redirect. Hope somebody can help.

Razzer
  • 1
  • 3
    Welcome to [so]! Looks like you need to learn more about what is expected of users here. You're expected to try to **write the code yourself**. After **[doing more research](//meta.stackoverflow.com/questions/261592)** if you have a problem you can **post what you've tried** with a **clear explanation of what isn't working** and providing a [**Minimal, Complete, and Verifiable example**](//stackoverflow.com/help/mcve). I suggest reading [ask] a good question and [the perfect question](http://codeblog.jonskeet.uk/2010/08/29/writing-the-perfect-question/). Also, be sure to take the [tour]. – John Conde Apr 03 '17 at 12:02
  • As you tagged `php` and not `javascript`, it should be like this. `` – Nytrix Apr 03 '17 at 12:03
  • sounds like homework; what have you researched/tried before signing up on Stack? – Funk Forty Niner Apr 03 '17 at 12:05
  • @NeerajKumar that question was closed as as not a real question – Masivuye Cokile Apr 03 '17 at 12:11
  • Please include some PHP code that you tried so far, so we can help you debug or improve it. – ITWitch Apr 03 '17 at 12:12
  • 2
    What if one person writes the correct password and then shares the direct youtube link with everyone else? – apokryfos Apr 03 '17 at 12:13

1 Answers1

0
<?php header('Location: location.php'); ?>
Ravi Ubana
  • 397
  • 5
  • 26