I'm trying to make a pop up window with html that requires a password before it goes away, that is about the size of the browser so no one can see the window, can anyone help!!??
They can't do squat on the page unless the pop up goes away in this case, as in you must put the pass in for you to be able to do anything. Would you like to see the code I used? (the pop up was too small) I decided to add a forum to my site, and do some stuff to lock the threads or something. Thanks allot!Umm What's to prevent someone from just closing the popup window ?
Or using a popup blocker to prevent the popup in the first place ?
How do you figure? Firefox's popup blocker wouldn't even allow your popup through unless I specifically authorized it.They can't do squat on the page unless the pop up goes away in this case. If you have your own web page, (not on CF) I could show you the code, so you could try it out. That'd be great wiggs, what details do you need?
I'd love to see it.They can't do squat on the page unless the pop up goes away in this case, as in you must put the pass in for you to be able to do anything. Would you like to see the code I used? (the pop up was too small) I decided to add a forum to my site, and do some stuff to lock the threads or something. Thanks allot!
Thanks, I turned out using a forum anyway thank you all for your help!Or, if your webhosting allows it, password protected directories which use 'htaccess'.
Clicking 'Cancel' on these merely returns 401 UNAUTHORISED from the server (an error condition - like a 404 page).
As for forums, most of them allow you to configure the forums to be password protected anyway. Check your forum settings.
<?php
$password = "admin"; // Make a Password
?>
<?php
print "<h2 align=\"center\">JREAM FTP [Login]</h2>";
// If password is valid let the user get access
if (isset($_POST["password"]) && ($_POST["password"]=="$password")) {
?>
<?php header('Location: index-2.php'); // This takes to the next page
?>