I want to know if that's possible for someone to create a automation script to send some kind of random form data to my PHP script which simply inserts received form data into the MySQL Database? Will the data get inserted and how can we secure it?
Example: I have a example.com/signup.php script which inserts the form data received into the MySQL Database. Is it possible for someone to send the form data to the example.com/signup.php script from a different host, like maybe localhost or domain-name.com?
For example can someone create some kind of this code like the below one and keep on inserting data here on http://www.domain-name.com/signup.php instead of inserting on http://www.example.com/signup.php and will the inserted data when submitted will get inserted into the database?
<form action="http://www.example.com/signup.php">
<input type="text" name="username" placeholder="Username">
<input type="password" name="password" placeholder="Password">
<button type="submit" name="signup-btn">Signup!</button>
</form>
So this way the database can get full if there's bot doing this...