# Login and registration

**URL:** <https://forum.kirupa.com/t/login-and-registration/13299>\
**Category:** Uncategorized\
**Created:** [February 11, 2003, 4:13pm UTC](https://forum.kirupa.com/t/login-and-registration/13299 "2003-02-11T16:13:33Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![lydia219](https://avatars.discourse-cdn.com/v4/letter/l/58956e/32.png) [@lydia219](https://forum.kirupa.com/u/lydia219)\
**Post date:** [February 11, 2003, 4:13pm UTC](https://forum.kirupa.com/t/login-and-registration/13299/1 "2003-02-11T16:13:33Z")

</div>

I don’t have any knowledge of ASP or PHP. I created a flash page with user name and password access function. I need to know what I need to do for textfield and what I need to require other people do in ASP. Then I can load variable data from the form which did in ASP.

I’m so worry about it. Hope to hear from you soon.

Thanks

Lydia

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 12, 2003, 3:22am UTC](https://forum.kirupa.com/t/login-and-registration/13299/2 "2003-02-12T03:22:37Z")

</div>

I was just playing around with this myself.

This is the code you need but I’m still trying to work out how to make it re-direct you to a specific URL once you get passed the username/password and how to have more than one name and password.

Put this b4 all PHP:

```php
 <?php

if(!isset($PHP_AUTH_USER)) 
  {
    Header("WWW-Authenticate: Basic realm=\"Admin Page\"");
    Header("HTTP/1.0 401 Unauthorized");
    echo "A username and password with administrative privileges are required for access to these pages.
";
    exit;
  } 
  else 
  {

 if($PHP_AUTH_USER!='kel' || $PHP_AUTH_PW!='420')
 {

            Header("WWW-Authenticate: Basic realm=\"Admin Page\"");
            Header("HTTP/1.0 401 Unauthorized");
                echo "Invalid username or password.
";
                exit;
        }

}

?> 

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 12, 2003, 1:56pm UTC](https://forum.kirupa.com/t/login-and-registration/13299/3 "2003-02-12T13:56:54Z")

</div>

Thanks a lot and waiting to your further helps

Lydia

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [February 12, 2003, 8:20pm UTC](https://forum.kirupa.com/t/login-and-registration/13299/4 "2003-02-12T20:20:11Z")

</div>

Like I said, I’m still trying to work out how to make it re-direct you to a specific URL once you get passed the username/password and how to have more than one name and password.

So if anyone can help with those questions then we’ll be stylin.
