why the html <form> doesn't disappear after using it
hi LQs, I'll try to explain the situation simply.
I have a HTML <form> with two (input type text), and a submit button, after I enter the two values and click submit button, the x.php appear successfully but the HTML <form> still remain in the x.php page, can you tell me how to hide the form from the x.php page :) |
Check of submit button. The code to print form should be conditional.
If your submit is defined do not show the form |
I don't think it is conditional, I just take the values and execute a Mysql query, the data fetched successfully from the database and the form I used to fetch data doesn't disappear, should it??, or I forgot to do something??
|
Yes, It should be conditional in case you want to hide if after posting the form.
|
appreciate your help, i think the condition should be in from.html right??
but what is the condition should be?? Code:
. |
Please post the relevant section of the code.
|
here is the form code (simplified I just pasted the main tags):
search form.html Code:
<script language="javascript"> Code:
$docNo = $_POST['docNo']; |
Is there any specific reason to include search_form.html in show_data.php ?
If not try commenting it out. this will stop showing the form on show_data.php. |
All times are GMT -5. The time now is 12:38 AM. |