Hey everyone , i am trying to submit a form 4 times with diffrent inputs.
i have 2 files
main.php
and submit.php
i didnt worry about checking if $_GET[p] was set because this is only an experiment.
this method should submit to the external 'form.php' 4 times with a diffrent name and email each time.
this however isnt working programaticly , when i go to the url manually it works. I believe it hase somethign to do with the s.click() dom i used.
all input is appreaciated , thankyou
i have 2 files
main.php
Code:
$p = 1
while ($p < 5 ){
file_get_contents("submit.php?p=" . $p);
echo "Submited form " . $p . "<br />";
$p++;
}
Code:
$c = $_GET[p]; echo " <form name='register' action='http://...form.php' method='post'> <input id='n' type='text' name='name' value='" . $c . "' /> <input id='e' type='text' name='email' value='" . $c . "@email.com' /> <input id='s' type='submit' value='Register' /> </form> <body onload=s.click()>";
this method should submit to the external 'form.php' 4 times with a diffrent name and email each time.
this however isnt working programaticly , when i go to the url manually it works. I believe it hase somethign to do with the s.click() dom i used.
all input is appreaciated , thankyou