i have 2 files
main.php
Expand|Select|Wrap|Line Numbers
- $p = 1
- while ($p < 5 ){
- file_get_contents("submit.php?p=" . $p);
- echo "Submited form " . $p . "<br />";
- $p++;
- }
Expand|Select|Wrap|Line Numbers
- $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