Advertisement
Guest User

Untitled

a guest
Dec 17th, 2021
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.53 KB | None | 0 0
  1. <?php include 'php/update.php'; ?>
  2. <!DOCTYPE html>
  3. <html>
  4. <head>
  5. <title>Update</title>
  6. <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
  7. <link rel="stylesheet" href="css/style.css">
  8. </head>
  9. <body>
  10. <div class="container">
  11.  
  12. <form action="php/update.php"
  13. method="post">
  14.  
  15. <h4 class="display-4 text-center">Update</h4> <hr><br>
  16.  
  17. <?php if (isset($_GET['error'])){ ?>
  18. <div class="alert alert-danger" role="alert">
  19. <?php echo $_GET['error']; ?>
  20. </div>
  21. <?php } ?>
  22.  
  23. <div class="form-group">
  24. <label for="customer_name">Name</label>
  25. <input type="name"
  26. class="form-control"
  27. id="customer_name"
  28. name="customer_name"
  29. value="<?=$row['customer_name']?>" >
  30. </div>
  31.  
  32. <div class="form-group">
  33. <label for="customer_email">Email</label>
  34. <input type="email"
  35. class="form-control"
  36. id="customer_email"
  37. name="customer_email"
  38. value="<?=$row['customer_email']?>" >
  39. </div>
  40.  
  41. <div class="form-group">
  42. <label for="customer_mobile">Mobile</label>
  43. <input type="tel"
  44. class="form-control"
  45. id="customer_mobile"
  46. name="customer_mobile"
  47. value="<?=$row['customer_mobile']?>" >
  48. </div>
  49.  
  50. <div class="form-group">
  51. <label for="poNum">PO Num</label>
  52. <input type="text"
  53. class="form-control"
  54. id="poNum"
  55. name="poNum"
  56. value="<?=$row['poNum']?>" >
  57. </div>
  58. <div class="form-group">
  59. <label for="site_name">Site Name</label>
  60. <input type="text"
  61. class="form-control"
  62. id="site_name"
  63. name="site_name"
  64. value="<?=$row['site_name']?>" >
  65. </div>
  66. <div class="form-group">
  67. <label for="street1">Address Line 1</label>
  68. <input type="text"
  69. class="form-control"
  70. id="street1"
  71. name="street1"
  72. value="<?=$row['street1']?>" >
  73. </div>
  74.  
  75. <input type="text"
  76. name="id"
  77. value="<?=$row['id']?>"
  78. hidden >
  79. <button type="submit"
  80. class="btn btn-primary"
  81. name="update">Update</button>
  82. <a href="read.php" class="link-primary">View</a>
  83. </form>
  84.  
  85. </div>
  86.  
  87. </body>
  88. </html>
  89. <!-- #1 Create https://www.youtube.com/watch?v=FxSLIvmnwzY
  90. #2 Read https://www.youtube.com/watch?v=qglyAJ8BzIE
  91. #3 Update https://www.youtube.com/watch?v=QrvcKzzomuY
  92. -->
  93.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement