A really easy way is to make the button disappear when it's clicked. Here's an example of how it's done:
<?php
<input
type="submit"
value="Click Me"
style="display:block;"
onclick="this.style.display='none'">
The inline CSS declaration display:block; must be there.
When the button is clicked, the onclick="this.style.display='none' attribute makes the submit button disappear.
Will Bontrager
Was this blog post helpful to you? (anonymous form)
All information in WillMaster Blog articles is presented AS-IS.
We only suggest and recommend what we believe is of value.
As remuneration for the time and research involved to provide quality links,
we generally use affiliate links when we can.
Whenever we link to something not our own, you should assume
they are affiliate links or that we benefit in some way.