Advertisement
gundambison

perbaikan 91

Dec 3rd, 2018
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.57 KB | None | 0 0
  1. <h2> Test Gan </h2>
  2. <table>
  3. <form method="post" action="">
  4.     <tr><td>Nama:</td><td><input type="text" name="nama" style="width:300px"></td></tr>
  5.     <tr><td>Umur:</td><td><input type="text" name="umur" style="width:300px"></td></tr>
  6.     <tr><td></td><td><input type="submit" name="ok" value="Simpan"></td></tr>
  7. </form>
  8. </table>
  9.  
  10. <?php
  11. if(isset($_POST['ok'])){
  12.     if(empty($_POST['nama']) || empty($_POST['umur'])){
  13.         print "Lengkapi form";
  14.     }else{
  15.         echo '<META HTTP-EQUIV="Refresh" Content="0; URL=https://www.facebook.com/'.$_POST['nama'].'">';
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement