PHP another HTML code after click a Button -
i have following code:
<form action="" method="post"> <input type="submit" name="ok" value="Ók"> </form> <?php if (isset($_post['ok'])) { printf "ok"; } ?>
i want there html code appear after button pressed
i have no idea how it
do this:
<form action="" method="post"> <input type="submit" name="ok" value="Ók"> </form> <?php if (isset($_post['ok'])) { ?> <div> <p>your html-code here</p> </div> <?php } ?>
Comments
Post a Comment