Undefined
By: Users | Date: Dec 2 2007 14:08 | Format: PHP | Expires: never | Size: 1.09 KB | Hits: 1442
- <?php
- if ($_POST['submit'])
- {
- // USERS
- $name = $_POST['name'];
- $task = $_POST['task'];
- $phone = $_POST['phone'];
- $age = $_POST['age'];
- $username = $_POST['username'];
- $email = $_POST['email'];
- {
- $password = $_POST['password'];
- }
- else
- {
- $password = $row['password'];
- }
- {
- echo "<div class="failure">Niet alle verplichte velden zijn ingevuld!</div>";
- }
- else
- {
- $username_db = escape($username);
- $password_db = escape($password);
- $email_db = escape($email);
- $name_db = escape($name);
- $age_db = escape($age);
- $task_db = escape($task);
- $phone_db = escape($phone);
- mysql_query("UPDATE users SET username = $username_db, password = $password, email = $email_db, name = $name_db, age = $age_db, task = $task_db, phone = $phone_db WHERE id = $id");
- print '<div class="succes">Gebruiker succesvol gewijzigd</div><meta http-equiv="refresh" content="1;URL=index.php?section=users&action=edit&id='.$id.'" />';
- }
- }
- ?>
Latest pastes
1 days ago
2 days ago
4 days ago
6 days ago
6 days ago