# I have no clue what I m doing

**URL:** <https://forum.kirupa.com/t/i-have-no-clue-what-i-m-doing/43692>\
**Category:** programming\
**Created:** [February 25, 2004, 2:36am UTC](https://forum.kirupa.com/t/i-have-no-clue-what-i-m-doing/43692 "2004-02-25T02:36:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![my3brs](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@my3brs](https://forum.kirupa.com/u/my3brs)\
**Post date:** [February 25, 2004, 2:36am UTC](https://forum.kirupa.com/t/i-have-no-clue-what-i-m-doing/43692/1 "2004-02-25T02:36:13Z")

</div>

```php
<?php
$_GET["un"];
$_GET["pw"];
$_GET["pwverify"];
$_GET["mail"];
$pw=($_POST["pw"]);
$pwverify=($_POST["pwverify"]);
$mail=($_POST["mail"]);
$un=($_POST["un"]);
if ($pw==$pwverify) {
   echo("ACCSESS OK")
   }else{
    echo('<SCRIPT language="JavaScript">
window.location="window.register.php?error=P";
</SCRIPT>');
}
if ($un=="" or $pw=="" or $pwverify=="" or $mail=="") {
    echo('<SCRIPT language="JavaScript">
window.location="window.register.php?error=U";
</SCRIPT>')
 }else{   
echo("ACCESS OK");
}
mysql_connect("localhost", "babolo", "")
   or die("Could not connect: " . mysql_error());
echo "Connected successfully";
mysql_select_db("babolo") or die ("couldnt connect to database");
mysql_insert_id($un) or die ("couldn't insert variable");
mysql_insert_id($mail) or die ("couldn't insert variable");
mysql_insert_id($pw) or die ("couldn't insert variable");
mysql_insert_id($pwverify) or die ("couldn't insert variable");
?>

```

Could someone please help me with this code I want these variables sent to database table called users on the db babolo
