I\'m sending values to php file using js like that:
validation.php?firstName=test?lastName=test?email=test?contactNumber=test?title=test?description=test
You need to separate them with the ampersand sign:
validation.php?firstName=test&lastName=test&email=test&contactNumber=test&title=test&description=test
Use the & instead of the ? in the url between variables.
? indicates the start of a query string but key/value pairs within it are separated with & or (less commonly) ;.
your URL is wrong. Make it like:
validation.php?firstName=test&lastName=test&email=test&contactNumber=test&title=test&description=test