I have a php form with a method of POST the data gets passed on to the same file then i run an if statement figuring out if they're set and not empty, i want to know if someone can input ']) SomePhpCode &&
as the name input value and execute the inputted PHP code since its completely unsecured
<?php
if (isset($_POST['name']) && !empty($_POST['name'])
&& isset($_POST['phone']) && !empty($_POST['phone']))
{ }
else
{
?>
<form action="" method="POST">
<span>Please Fill Out Your Information</span>
<input type="text" name="name" required autofocus>
<input type="text" name="phone" required autofocus>
<button type="submit">Get A Call</button>
<?php
}
?>