Jump to content

A question


Recommended Posts

How can I integrate a popup in my website, which asks the people for an username and password, before they can continue? It looks like this:

Username:
Password:
Remember Password

Greetings

Sars!

ps: Whooow, that's a while ago since I came here!

Link to comment
Share on other sites


This should do the trick as it's also the most compatible with browser settings. Do note that it requires the use of PHP.

http://www.zend.com/zend/tut/authentication.php

the following entry of interest from the url would be this...

<?php 

if ((!isset( $PHP_AUTH_USER )) || (!isset($PHP_AUTH_PW))) {

header( 'WWW-Authenticate: Basic realm="Private"' );
header( 'HTTP/1.0 401 Unauthorized' );
echo 'Authorization Required.';
exit;

} else {

echo "You entered $PHP_AUTH_USER for a username.<BR>";
echo "You entered $PHP_AUTH_PW for a password.<BR>";

}

How you check for valid user/pass info is up to you. You have several ways to try it in the url posted.

... good luck :)

Edited by Chozo4
Link to comment
Share on other sites

how do u design without coding :P

I make websites with photoshop. Which I transfer to imageready, which I save as html + images which I add text with dreamweaver...

Simple as that! Though my question needs an answer, a simple one!

Link to comment
Share on other sites

  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...