looking to find out the best way to handle my form inputs. Firstly, the form is completely validated using Javascript. I presume validation is then done in PHP for users who disable Javascript. At the moment I am getting inputs like so
<?php
$title = $_POST['inputTitle'];
$name = $_POST["inputName"];
$surname = $_POST["inputSurname"];
$email = $_POST["inputEmail"];
$link = $_POST["inputLinks"];
if (isset($title) && isset($name) && isset($surname) && isset($email) && isset($link)) {
//do something
}
Is it enough to simply do that? Or should I be doing proper validation on the email even though it was done in Javascript?
Also, would it be best to add these inputs to an array? I cant do it via html because I needed to give each input their own unique name.
Thanks