I have a button that runs a PHP script that updates prices on my page. Right now the button redirects to the update page (priceupdate.php). I want the button to run this script, but not redirect to it. It'd even greater if the button's name could change from "Update Prices" to "Prices Updated" after it's been clicked.
<form action="updateprices.php" method="post">
<input value="Update Prices" type="submit">
Any suggestions? I don't have any text to submit, which is the majority of what I've been finding sample scripts for.