# Update Help

**URL:** <https://www.phphelp.com/t/update-help/9936>\
**Category:** MySQL database\
**Created:** [April 29, 2007, 7:26pm UTC](https://www.phphelp.com/t/update-help/9936 "2007-04-29T19:26:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shirt](https://www.phphelp.com/letter_avatar_proxy/v4/letter/s/a87d85/32.png) [@Shirt](https://www.phphelp.com/u/Shirt)\
**Post date:** [April 29, 2007, 7:26pm UTC](https://www.phphelp.com/t/update-help/9936/1 "2007-04-29T19:26:15Z")

</div>

Im having trouble it seems my code on insertss.php is not getting any of my other stuff on my text fields

First Site. Where the information is gotten from

```auto
<html>
<body>
<form method="get" action="insertss.php">
Username: <input type="text" name="user"><br/>
Password: <input type="text" name="pass"><br/>
<input type="submit" value="Non-TBC"></form>
</body>
</html>
```

insertss.php

```auto
<?php
if (isset($_POST["user"])) {
$u = $_POST["user"];
$p = $_POST["pass"];
}
$con = mysql_connect("localhost","root","monkey123");
if (!$con)
  {
  die('Could not connect: ' . mysql_error());
  }

mysql_select_db("realmd", $con);

$sql="UPDATE account SET tbc = '0' WHERE username = '".$u."' AND password = '".$p."'";
if (!mysql_query($sql,$con))
  {
  die('Error: ' . mysql_error());
  }
echo "Account $u has been updated.";
echo $sql;
mysql_close($con);
?>
```

---

<div class="post-metadata">

**Author:** ![Ragster00](https://www.phphelp.com/letter_avatar_proxy/v4/letter/r/a9adbd/32.png) [@Ragster00](https://www.phphelp.com/u/Ragster00)\
**Post date:** [April 30, 2007, 3:50pm UTC](https://www.phphelp.com/t/update-help/9936/2 "2007-04-30T15:50:34Z")

</div>

You need to change the method in the html form tag to POST.

That will send the values via the POST array in php.

\<form method="POST".....

That should fix it.
