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
And in validation.php I've created array with these values like that:
$data[0] = $_GET['firstName'];
$data[1] = $_GET['lastName'];
$data[2] = $_GET['email'];
$data[3] = $_GET['contactNumber'];
$data[4] = $_GET['title'];
$data[5] = $_GET['description'];
unfortunately php returns me errors, why?