Guest User

proooff

a guest
Oct 16th, 2016
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. <?php
  2.  
  3. if (isset($_POST['submit'])) {
  4. // new data
  5. $uname = $_POST['txtuname'];
  6. $email = $_POST['txtemail'];
  7. $phone = $_POST['phone'];
  8. $uid = $row['userID'];
  9.  
  10. // query
  11. $uid->update($uname,$email,$phone,$userID);
  12. }
  13.  
  14.  
  15. ?>
  16.  
  17.  
  18. <form action="" method="POST">
  19. Name<br>
  20. <input type="text" name="txtuname" value="<?php echo $row['userName'] ?>" /><br>
  21. Email<br>
  22. <input type="text" name="txtemail" value="<?php echo $row['userEmail'] ?>" /><br>
  23. Phone<br>
  24. <input type="text" name="phone" value="<?php echo $row['userPhone'] ?>" /><br>
  25. <input type="submit" name="submit" value="Save" />
  26. </form>
Add Comment
Please, Sign In to add comment