Everything is working on my website from it showing the details when i click modify from the database.. BUT when i try and change something, then click submit. BAMM. shows a windows cannot be displayed and wont do anything NOR update.. here is the final code i believe is having an issue while posting.
Code:
<h1>modify info</h1> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> Name <input type="text" name="inputName" value="<?php echo $person['Name']; ?>" /><br /> Description <input type="text" name="inputDesc" value="<?php echo $person['Description']; ?>" /> <br /> <input type="hidden" name="id" value="<?php $_GET['id']; ?>" /> <input type="submit" name="submit" value="Modify" /> </form> <?php if (isset($_POST['submit'])) { $u = "UPDATE people SET 'Name'='$_POST[inputName]', 'Description'='$_POST[inputDesc]' WHERE ID = $_POST[id]"; mysql_query($u) or die(mysql_error()); echo "User has been created"; header("Location: index.php"); } ?>
Comment