0

hey guys. i have created this page that has a text box and a search button and below them is another button let's call this button button A. when the search button is clicked the query runs and a table regarding whatever was searched will be displayed and thats okay. My question is how do i make button A when clicked, the current table being displayed will disappear and the table regarding button A will appear instead. does that make sense? im sorry im not really good at explaining myself.

2
Contributors
1
Reply
14
Views
3 Years
Discussion Span
Last Post by patk570
0

Why not trying:

PHP code:

<?php
if(isset($_POST['BTN_NAME']){
        //do fucnction or query here.  
    }
    if(isset($_POST['buttonA']){
        //do stuff here
    }
?>

HTML

<form action="" method="post" name="TestForm">
    <input type="text" name="text1">
    <input type="submit" value="Run Search" name="BTN_NAME">
</form>

<form action="" method="post" name="TestButtonA">
    <input type="submit" value="Button A" name="buttonA"
</form>
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.