Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php include 'php/update.php'; ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>Update</title>
- <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
- <link rel="stylesheet" href="css/style.css">
- </head>
- <body>
- <div class="container">
- <form action="php/update.php"
- method="post">
- <h4 class="display-4 text-center">Update</h4> <hr><br>
- <?php if (isset($_GET['error'])){ ?>
- <div class="alert alert-danger" role="alert">
- <?php echo $_GET['error']; ?>
- </div>
- <?php } ?>
- <div class="form-group">
- <label for="customer_name">Name</label>
- <input type="name"
- class="form-control"
- id="customer_name"
- name="customer_name"
- value="<?=$row['customer_name']?>" >
- </div>
- <div class="form-group">
- <label for="customer_email">Email</label>
- <input type="email"
- class="form-control"
- id="customer_email"
- name="customer_email"
- value="<?=$row['customer_email']?>" >
- </div>
- <div class="form-group">
- <label for="customer_mobile">Mobile</label>
- <input type="tel"
- class="form-control"
- id="customer_mobile"
- name="customer_mobile"
- value="<?=$row['customer_mobile']?>" >
- </div>
- <div class="form-group">
- <label for="poNum">PO Num</label>
- <input type="text"
- class="form-control"
- id="poNum"
- name="poNum"
- value="<?=$row['poNum']?>" >
- </div>
- <div class="form-group">
- <label for="site_name">Site Name</label>
- <input type="text"
- class="form-control"
- id="site_name"
- name="site_name"
- value="<?=$row['site_name']?>" >
- </div>
- <div class="form-group">
- <label for="street1">Address Line 1</label>
- <input type="text"
- class="form-control"
- id="street1"
- name="street1"
- value="<?=$row['street1']?>" >
- </div>
- <input type="text"
- name="id"
- value="<?=$row['id']?>"
- hidden >
- <button type="submit"
- class="btn btn-primary"
- name="update">Update</button>
- <a href="read.php" class="link-primary">View</a>
- </form>
- </div>
- </body>
- </html>
- <!-- #1 Create https://www.youtube.com/watch?v=FxSLIvmnwzY
- #2 Read https://www.youtube.com/watch?v=qglyAJ8BzIE
- #3 Update https://www.youtube.com/watch?v=QrvcKzzomuY
- -->
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement