I am trying to used a server side validation on php where in my form has a action and target attribute. My form looks like this.
<form action="destination.php" method="POST" target="blank">
/* inputs here
<input type="submit" name="submit">
</form>
I tried to used validation on the same page as the form. But since it has a target="blank" attribute. It is not working. Any idea on how can I make a server side validation on this way? thanks.
if(isset($_POST['submit']))
{
/* validation here..
}