close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

WA Form Validation in PHP with forms in according and problems with link and validation - Please help

Thread began 12/29/2013 12:15 am by Venkatesh | Last modified 1/01/2014 12:42 pm by Venkatesh | 1921 views | 5 replies

Venkatesh

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.

Please help

Attached Files
website_zipped.rar
working-login-form.rar

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

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.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...