Hello Keifi.
You would probably need more than HTML to solve this problem if you want a generated cuponcode to appear inside the button.
I suggest you to try something like this:
HTML
HTML Code:
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
<input type="submit" value="Get cuponcode" name="submit" />
</form>
PHP
Code:
if (isset($_POST['submit'])) {
echo '4827482';
}
This is a very simple explanation but since you're new, this might give you an idea of how it could be made.
This code gives you a button and when you press it, the text inside the "echo" statement will be shown beneath the button. If the cuponcode needs to change everytime the button is pressed, then you will need something to generate the code.
I hope this gives you an idea of how it could be made.
- PB
Bookmarks