I am having one button1, when click on it another button2 comes. when click on button2 i am showing an image on the right side. But the button2 is disappearing. I want all the buttons to be present in the page. Please help whats going wrong in this.
The image is coming but style1 button is going off (disappearing). How can I retain the buttons.Code:<form method="post" action=""> <input type="submit" name="submit_base" value="Style"> </form> <?php if(isset($_POST['submit_base'])) { ?> <form method="post" action=""> <input type="submit" name="submit1" value="Style1"> </form> <?php } ?> <?php if(isset($_POST['submit1'])) { $imagepath = "shirt7.jpg"; echo "<img style='float:right;' src='$imagepath' />"; ?> } ?>


Reply With Quote


Bookmarks