Clear Validation
If the validation fails the error is displayed well. Then the form pass and data is saved. If I reopen the the same form the errors display still displayed. The validation query is not empty. how can I clear that?
Regards
If the validation fails the error is displayed well. Then the form pass and data is saved. If I reopen the the same form the errors display still displayed. The validation query is not empty. how can I clear that?
Regards
The session must not be started before the successful validation. If you attach the file I can show you where to add it to fix this problem.
Lines 27-30 you have:
}
?>
<?php
if (isset($_POST["save_user"]) || isset($_POST["save_user_x"])) {
start the session in between like:
}
?>
<?php @session_start(); ?>
<?php
if (isset($_POST["save_user"]) || isset($_POST["save_user_x"])) {
Isnt the query and connection files start session by itself?
Yes, but I think the restrictaccess ends it after checking for efficiency. If you start it back up then it will allow the session to be cleared.
Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.
These out-of-the-box solutions provide you proven, tested applications that can be up and running now. Build a store, a gallery, or a web-based email solution.