• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 237
  • Last Modified:

Javacript Form Validation

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
0
rolandmy
Asked:
rolandmy
4 Solutions
 
Mark BradyPrincipal Data EngineerCommented:
Explain a couple of things first.

1: Is the server that is working on your local computer? localhost or 127.0.0.1?
2: The server that is not working is online somewhere? eg: http://www.somewebsite.com ?

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.

Thanks
0
 
rolandmyAuthor Commented:
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 http://www.rolandlai.com/sample/index-add.php?bizid=123456

Click on submit and it's able to validate. Apparently my live server unable to do. Any solution for this headache?
0
 
maeltarCommented:
Just tested it in FF and it validated fine...

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

"NetworkError: 404 Not Found - http://www.rolandlai.com/sample/loginmodule.css"
loginmodule.css
"NetworkError: 404 Not Found - http://www.rolandlai.com/sample/loginmodule.css"
loginmodule.css
"NetworkError: 404 Not Found - http://www.rolandlai.com/images/bg-img-2.jpg"
bg-img-2.jpg
"NetworkError: 404 Not Found - http://www.rolandlai.com/images/701panduan-logo.png"
701pan...ogo.png
POST http://www.rolandlai.com/sample/checksubdomain.php
      
404 Not Found
            264ms      
"NetworkError: 404 Not Found - http://www.rolandlai.com/sample/checksubdomain.php"
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
mcnuteCommented:
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.
0
 
BadotzCommented:
Validation errors abound:

HTML

CSS
0
 
BadotzCommented:
The strong, silent type, eh?

No worries - glad to help.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now