I'm working on a script that fills out forms automaticaly.
The form url's are stored in a database, and I need to submit the variables to the forms using the post method.
The problem is that I do not know how to automaticaly submit the forms in php(without pressing a button for each form

)
The code would look something like this:
PHP Code:
<?php
for($i=1;$i<10;$i++){
$url_form="http://www.anotherserver.com/form".$i.".php";
$name="John";
}
?>
How do I submit the variable $name to all 10 external forms in the loop using the POST method?