How does one properly mix html and php.
SCoder1 0 Newbie Poster
Recommended Answers
Jump to PostBelow is the sample of mixing html and php:
<html> <head></head> <body> <?php if (!isset($_POST['submit'])) { ?> <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> Enter your age: <input name="age" size="2"> <input type="submit" name="submit" value="Go"> </form> <?php } else { echo "Else part"; } ?> </body> </html>
All 4 Replies
chrishea 182 Nearly a Posting Virtuoso
vaultdweller123 32 Posting Pro

rajarajan2017
Ankit_Parmar 1 Light Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.