Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <h2> Test Gan </h2>
- <table>
- <form method="post" action="">
- <tr><td>Nama:</td><td><input type="text" name="nama" style="width:300px"></td></tr>
- <tr><td>Umur:</td><td><input type="text" name="umur" style="width:300px"></td></tr>
- <tr><td></td><td><input type="submit" name="ok" value="Simpan"></td></tr>
- </form>
- </table>
- <?php
- if(isset($_POST['ok'])){
- if(empty($_POST['nama']) || empty($_POST['umur'])){
- print "Lengkapi form";
- }else{
- echo '<META HTTP-EQUIV="Refresh" Content="0; URL=https://www.facebook.com/'.$_POST['nama'].'">';
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement