Jump to content
j.silver

PHP, JS, and CSS Validation

Recommended Posts

Hi,

As you know, there is W3C markup validation service. Is there a reliable validation service for PHP, MySQL, JS (other than Chrome's console), and CSS?

Share this post


Link to post
Share on other sites

what do you mean validations ? validations on what case, i guess you need validations in form submit to database ?
before submitinsert to database you should use function if which is check your input already fill in or not ?
please explain more so people her ecan debug adn help you

Share this post


Link to post
Share on other sites

Validation of a block of code to see if it is written properly. You copy your block of code and paste it inside the validator, which comes up with a statement that the code is good or lists suggestions of improving the code to be in line with standards.

Share this post


Link to post
Share on other sites

HTML validation only ensures that the HTML has proper syntax. If the PHP syntax is incorrect you'll get a syntax error. If Javascript syntax is incorrect you get a Javascript error. If MySQL syntax is incorrect you'll get an SQL error.

 

HTML needs validation because, unlike those other languages, browsers forgive mistakes and try to interpret wrong HTML as best as they can. PHP, Javascript and MySQL won't function properly if the syntax is incorrect.

Share this post


Link to post
Share on other sites

The editor you use if features include php, js, css syntax highlighting will give you basic validation, it should give you hints on using specific javascript, php functions or variables and css selectors already defined and css properties and values.

Share this post


Link to post
Share on other sites

Paid editors are usually equipped with some basic validation capabilities, but I am using Notepad++ in which I am not seeing such capabilities. Is there a setting change in Notepad++ that might make it more capable, or is there a better free editor?

Share this post


Link to post
Share on other sites

There are also build tools like Grunt and Gulp that have plugins for linting JS / CSS / HTML files.

 

note: these are tools built on top of Node.js

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...