More Related Content
More from Digital Insights - Digital Marketing Agency
More from Digital Insights - Digital Marketing Agency (20)
Php 3 1
- 17. <?php if (! $_POST["surname"] or !$_POST["address"]){ ?> <form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>"> <p>Your surname: <input type="text" name="surname"></p> <p>Your address: <input type="text" name="address"></p> <input button type="submit" value= "Please send me the brochure."> </form> <?php } else{ $sn = $_REQUEST['surname']; echo "<p>Thank you, $sn.</p>"; $addr = $_REQUEST['address']; echo "<p> We will write to you at $addr .</p>"; } ?> forms