Created
December 8, 2012 21:34
-
-
Save mufid/4242071 to your computer and use it in GitHub Desktop.
Tes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Coba isi text box dengan nilai apapun | |
?> | |
<form action="tes2.php" method="POST"> | |
<label>Makanan favorit?</label> | |
<input type="text" name="ganteng" /> | |
<!-- ^markah1 --> | |
<button>Tes</button> | |
</form> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$makanan_kesukaan = $_POST['ganteng']; // perhatikan sama dengan tag name di tes1. Lihat markah 1 di file tes1 | |
?> | |
<h1>Makanan kesukaan kamu: <?php echo $makanan_kesukaan ?> </h1> | |
<a href="tes1.php">Balik</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment