Can anyone see an issue that would prevent this code from not posting the 'id1' text box to the 'updateUser.php' page? I've been sitting her staring at this for 30 minutes and can not for the life of me figure out what is wrong, for toubleshooting, I have it echoing on the other side and $newUser and $username have the right data but $id never fills in, not even if I put a string for the value in the form.
<table> <form method="post" action="updateUser.php"> <tr> <td></td><td align="right"><input type="text" id="id1" value="<?php echo "$id" ; ? >" ></input></td> </tr> <tr> <td align="right">Enter your current password:</td><td align="right"><input type="text" id="user1"></td> </tr> </br> <tr> <td align="right">Enter your new username:</td><td align="right"><input type="text" id="user2"></td> </tr> <tr> <td></td><td><input type="submit" value="Change"></input></td> </form> </tr> And here is the relevant updateUser.php:
$id = $_GET['id1']; $password = $_GET['user1']; $newUser = $_GET['user2']; $username = $_SESSION['username'];
form method="post"!=$_GET[...];... you need to use$_POSTnameattributes? >in the<input>element and though I've not tested, I suspect PHP won't attempt to honor that.?>it should look like.error_reporting(E_ALL); ini_set('display_errors', 1);