I'm having a little trouble trying to create a button that when clicked, shows another button in its place. Then when this second button is clicked, the first one is displayed again.
I
<form method="process.php" action="get"> <button type="submit" name="bid" id="bidbutton">Place Bid</button> <button type="submit" name="unbid" id="unbidbutton">Remove Bid</button> </form>
<?php
/* what the bid/unbid buttons do - NEED TO FIX */
if(isset($_POST['bid'])) {
echo "You have a placed a bid on this item";
if(isset($_POST['unbid'])) {
echo "You have removed your bid on this item";
} else {
echo "You must place a bid before you can remove it";
}
}
This post has been edited by Dormilich: 21 September 2012 - 02:19 AM
Reason for edit:: please use [code] [/code] tags when posting code

New Topic/Question
Reply


MultiQuote



|