Jump to content

izildop

New Members
  • Posts

    3
  • Joined

  • Last visited

izildop's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. So I need a page that holds a cookie name and will tell you how much times this cookie name is visited. So I got this for the form. So lets say I type in the form the name Paul, next time if I type Paul again the cookie will say, hello paul you have visited this page 3 times depenting ofcourse how much time he as visited already. If I will type another name like Bob, it will say, Hello bob you have visited this page 1 time. Somebody can help with this ty. <?php echo "naam:<input type=\"text\" name=\"name\" size=\"20\"><br/>"; echo "<input type=\"submit\" value=\"Verzenden\" />"; ?>
  2. <!doctype html> <html> <head> <title> Basisschool De Regenboog </title> <style> img { position: absolute; left: 60%; } </style> </head> <body> <a href="http:/www.youtube.com"><img src="Plaatjes/youtube.png" /> <script> </script> <!-- header of your page, up until the content area --> <?php if (!isset($_POST["password"]) || $_POST["password"] != "123") { // no password or wrong password ?> <form action="" method="post"> <p>Password: <input type="password" name="password"> <button type="submit">Enter</button></p> </form> <?php } else { // correct password ?> <!-- normal page content --> <?php } ?> <!-- footer of your page --> </body> </html> I put a youtube button link on the page, but when I click to write down the password it directly send me to youtube, and it shouldn't show the button or atleast only unlock the page when you put the pass in. Mabey I misunderstood something (just a beginner)
  3. Hello I'm beginner with php, but I have a good question. I have a html page with a navigationbar, let's say I click on my navbar about me, just for example. How can I lock the screen with a password before someone can start clicking or scrolling in the about me page. So only the one with the password can enter that single page that is locked. Doing this with javascript is not good because you can open the web codes and see what the password is. How do I do this in PHP, anyone can help?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.