D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
opt
/
lampp
/
htdocs
/
admin
/
Filename :
change_Address.php
back
Copy
<!-- Button to trigger modal --> <a class="btn" href="#myModaladd" data-toggle="modal">Change Addtess</a> <br> <br> <br> <!-- Modal --> <div id="myModaladd" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> <div class="modal-header"> <h3 id="myModalLabel">Change Address</h3> </div> <div class="modal-body"> <form method="post" action="address.php"> <?php require_once('db.php'); $result = $conn->prepare("SELECT * FROM address "); $result->execute(); for($i=0; $row = $result->fetch(); $i++){ $id=$row['id']; ?> <table class="table1"> <tr> <td><label style="color:#3a87ad; font-size:18px;">Address</label></td> <td width="30"></td> <td><textarea type="text" name="address" placeholder = "Address" rows="5" required> <?php echo $row['address']; ?> </textarea></td> </tr> <tr> <td><label style="color:#3a87ad; font-size:18px;">Mobile Number</label></td> <td width="30"></td> <td><input type="text" name="mobile" placeholder="Mobile Number" value="<?php echo $row['mobile']; ?>" required /></td> </tr> <tr> <td><label style="color:#3a87ad; font-size:18px;">Second Mobile Number</label></td> <td width="30"></td> <td><input type="text" name="mobile2" placeholder="Mobile Number" value="<?php echo $row['mobile2']; ?>" /></td> </tr> <tr> <td><label style="color:#3a87ad; font-size:18px;">Email</label></td> <td width="30"></td> <td><input type="email" name="email" placeholder="Email" value="<?php echo $row['email']; ?>" required /></td> </tr> <tr> <td><label style="color:#3a87ad; font-size:18px;">Second Email Address</label></td> <td width="30"></td> <td><input type="email" name="email2" placeholder="Email" value="<?php echo $row['email2']; ?>" /></td> </tr> </table> <?php } ?> </div> <div class="modal-footer"> <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button> <button type="submit" name="Submit" class="btn btn-primary">Update</button> </div> </form> </div>