Wednesday, March 6, 2019

Php two



















<body>
<form action = "" method = "post">
<label> Enter name </label>
<input type = "text" name = "txtname"/>
<input type = "submit" value = "Save" name = "b1"/>
</form>

<?php

if(isset($_POST['b1'])){
$name = $_POST['txtname'];
?>
<h1> your name is : <?php echo $name ?> </h1>
<?php
}
?>
</body>

No comments:

Post a Comment

PHP THREE