WA Form Validation in PHP with forms in according and problems with link and validation - Please help
Hi, I am trying to create a registration login system in my website for my clinic. I have used a template based on PHP to create my website. I know nothing about PHP. Essentially, I have used webassist to create a login for with server side validation as a first step. I have utilized different css styles to manually style the form that WA generates. While the form on it's own works fine without being included in any page, I am having trouble when I integrate it into the page where I want it to work. The links in my webpage are referenced by PHP for e.g. menu link as follows to the login page - <li class="submenu<?php echo ($_GET["page"]=="professionals" ? " class='selected'" : ""); ?>"><a href="#" title="FOR PROFESSIONALS">FOR PROFESSIONALS</a><ul class="wide"><li><a href="?page=practitioners#practitioner-login" title="Professional Login">Login</a></li>. The login form is on a page that has accordion panels that hide the forms and I usually call the login form using the link as ?page=practitioners#practitioner-login where the PHP page is practitioners.php and the DIV ID for the form is practitioner-login. When I integrate the login form, I have been getting errors with the validation which is not working and I think the problem lies in how the PHP redirection have been referenced. I have used ?page=practitioners in <form action> and the validation does not work. I am not sure how to reference the action page or links to it in the various validation fields. I moved the form to a separate page (renamed just as login) without accordions and referenced the form action as ?page=login and it partially works. It temporarily loads something in the background saying 'There was a problem' but this is quickly replaced by the page with fields mostly validated including email, password and CAPTCHA but not the second security question which is not validating despite correct answers. The same form without the PHP require once for header or footer and called simply from the browser as localhost/?page=login (renamed as login with just the form and scripts)worked fine. Unfortunately I have messed up the file with multiple rewrites and it is not working anymore. Why am I getting the footer stuff in the progress bar wrapper as seen in the other pic.
Please help me integrate this into my existing page so that I can then work on inserting it into database and user registration forms etc. I have attched screenshots (4 files in sequence of the file login.php that loads the form and which partially works with a background temporary error)and the PHP files (including header and footer files) zipped version of my whole website for your review.