# Checking Username & Pasword on one webpage and then sending these details to another

**URL:** https://forum.kirupa.com/t/checking-username-pasword-on-one-webpage-and-then-sending-these-details-to-another/187544
**Category:** programming
**Created:** [April 30, 2006, 9:36am UTC](https://forum.kirupa.com/t/checking-username-pasword-on-one-webpage-and-then-sending-these-details-to-another/187544 "2006-04-30T09:36:51Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![devinstar](https://avatars.discourse-cdn.com/v4/letter/d/e495f1/32.png) [@devinstar](https://forum.kirupa.com/u/devinstar)
#### Post date: [April 30, 2006, 9:36am UTC](https://forum.kirupa.com/t/checking-username-pasword-on-one-webpage-and-then-sending-these-details-to-another/187544/1 "2006-04-30T09:36:51Z")

</div>

Hi All,

I have created a ‘login’ swf on the homepage of my website. If the login details are corret I want to open a new html page (do this using getURL) how do I send the username details across to the next page in the easiest way.

I would prefer opening seperate html pages rather than having one big .swf.

Thanks!

Devin

---

<div class="post-metadata">

### Author: ![KIERIOSHIMOTO](https://avatars.discourse-cdn.com/v4/letter/k/c6cbf5/32.png) [@KIERIOSHIMOTO](https://forum.kirupa.com/u/KIERIOSHIMOTO)
#### Post date: [May 1, 2006, 12:54am UTC](https://forum.kirupa.com/t/checking-username-pasword-on-one-webpage-and-then-sending-these-details-to-another/187544/2 "2006-05-01T00:54:03Z")

</div>

I assume you already have your database created??

If not heres an example:

```php

CREATE TABLE auth (
  userid
    int(4)
    unsigned
    zerofill
    DEFAULT '0000'
    NOT NULL
    auto_increment,
  username varchar(20),
  userpassword varchar(20),
  PRIMARY KEY (userid)
);

```

[COLOR=Black]  
Run this query in phpMyAdmin. That’s your database,  
you know need to create two text boxes, “user"  
and “password”. Next you need to put this on your  
"Login” button.

```php

loadVariablesNum("login.php", 0, "POST");
	}
}

```

This will send your variables, “user” & “password” through  
to your login.php, which will be the actual workings of  
this operation.

[/COLOR]
