Javacript Form Validation

Posted on 2011-10-23
Last Modified: 2012-05-12
Hello, my index.php's validation is working fine in production server (which is a local server). However, when it comes to live server (in data center), the validation does not work. I am so confused about this. Attached is the code for index.php with javascript validation (it's a form). Experts, help! index.php
Question by:rolandmy
    LVL 20

    Assisted Solution

    by:Mark Brady
    Explain a couple of things first.

    1: Is the server that is working on your local computer? localhost or
    2: The server that is not working is online somewhere? eg: ?

    3: What exactly is the problem? You have a lot of code in the index.php file and it would be much easier to help you if you could explain a bit clearer what is supposed to happen and what is NOT happening. Is it the PHP validation that is not working or is it javascript validation?

    If it is PHP doing the validation then attach the validation script (unless it is in index.php)
    If it is javascript doing the validation that's not working, please attach the external javascript function that is not working.

    LVL 2

    Author Comment

    Only the validation part is not working (for live server in data center). It works in localhost and my private server. Just not working in live server. Uploaded a sample in my private server. It can be found at

    Click on submit and it's able to validate. Apparently my live server unable to do. Any solution for this headache?
    LVL 11

    Accepted Solution

    Just tested it in FF and it validated fine...

    It's not finding a few other files though ....

    "NetworkError: 404 Not Found -"
    "NetworkError: 404 Not Found -"
    "NetworkError: 404 Not Found -"
    "NetworkError: 404 Not Found -"
    404 Not Found
    "NetworkError: 404 Not Found -"
    LVL 11

    Assisted Solution

    It seems that you have two validators on the same page the yav and the one between the script tags in the head. Try to work with only one of these.
    LVL 29

    Assisted Solution

    Validation errors abound:


    LVL 29

    Expert Comment

    The strong, silent type, eh?

    No worries - glad to help.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Course: Create Mobile App Prototypes with Adobe XD

    This is a project-based course: we go through all the steps of creating a prototype from start to finish, using all the tools and features currently available in Adobe XD. You can complete the course in less than a day, plus all project files and fonts are included.

    Introduction Got endorsements from your clients?  Great!  There is almost nothing better than word-of-mouth advertising.  But how can you do that on the internet?  Sure you can make a page for endorsement quotations and list them all, but who is …
    How to build a simple, quick and effective accordion menu using just 15 lines of jQuery and 2 css classes
    The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
    The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

    758 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    13 Experts available now in Live!

    Get 1:1 Help Now