You should use curl.
Put the url of those 10 pages in an array: $url[0] = `http://url_1.com`; $url[1] = `http://url_2.com`; ...... $url[9] = `http://url_10.com`; for ($i=0; $i<count($url); $i++){ $ch = curl_init(); // initialize curl handle curl_setopt($ch, CURLOPT_URL,$url[$i]); // set url to post to curl_setopt($ch, CURLOPT_FAILONERROR, 1); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);// allow redirects curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); // return into a variable curl_setopt($ch, CURLOPT_TIMEOUT, 29); // times out after 4s curl_setopt($ch, CURLOPT_POST, 1); // set POST method curl_setopt($ch, CURLOPT_POSTFIELDS, "field1=".$_POST["field1"]."&field2=".$_POST["field2"]); // add POST fields $result = curl_exec($ch); // run the whole process echo curl_error($ch); curl_close($ch); echo $result; } Good luck _____ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of imran shafiq Sent: Monday, December 12, 2005 2:17 PM To: [email protected] Subject: [php_mysql] How to submit a veriable to 10 different PHP pages. How to submit a veriable to 10 different PHP pages. --------------------------------- Play Santa's Celebrity Xmas Party, an exclusive game from Yahoo! [Non-text portions of this message have been removed] The php_mysql group is dedicated to learn more about the PHP/MySQL web database possibilities through group learning. SPONSORED LINKS American <http://groups.yahoo.com/gads?t=ms&k=American+general+life+and+accident+insu rance+company&w1=American+general+life+and+accident+insurance+company&w2=Ame rican+general+life+insurance+company&w3=American+general+life&w4=American+ge neral+mortgage&w5=American+general+life+insurance&w6=Computer+internet+secur ity&c=6&s=230&.sig=Kzn1J6ZDdsfc3f-9JZ-bKQ> general life and accident insurance company American <http://groups.yahoo.com/gads?t=ms&k=American+general+life+insurance+company &w1=American+general+life+and+accident+insurance+company&w2=American+general +life+insurance+company&w3=American+general+life&w4=American+general+mortgag e&w5=American+general+life+insurance&w6=Computer+internet+security&c=6&s=230 &.sig=q5Z_Gheyyf5dB3KHCkTGOw> general life insurance company American <http://groups.yahoo.com/gads?t=ms&k=American+general+life&w1=American+gener al+life+and+accident+insurance+company&w2=American+general+life+insurance+co mpany&w3=American+general+life&w4=American+general+mortgage&w5=American+gene ral+life+insurance&w6=Computer+internet+security&c=6&s=230&.sig=1O42IK5r5LJ1 BBWLyTAAKA> general life American <http://groups.yahoo.com/gads?t=ms&k=American+general+mortgage&w1=American+g eneral+life+and+accident+insurance+company&w2=American+general+life+insuranc e+company&w3=American+general+life&w4=American+general+mortgage&w5=American+ general+life+insurance&w6=Computer+internet+security&c=6&s=230&.sig=AC-EcyrN 2MPgqHTxt6lmKg> general mortgage American <http://groups.yahoo.com/gads?t=ms&k=American+general+life+insurance&w1=Amer ican+general+life+and+accident+insurance+company&w2=American+general+life+in surance+company&w3=American+general+life&w4=American+general+mortgage&w5=Ame rican+general+life+insurance&w6=Computer+internet+security&c=6&s=230&.sig=P8 vNlXr7QopQQ3tGIepE4Q> general life insurance Computer <http://groups.yahoo.com/gads?t=ms&k=Computer+internet+security&w1=American+ general+life+and+accident+insurance+company&w2=American+general+life+insuran ce+company&w3=American+general+life&w4=American+general+mortgage&w5=American +general+life+insurance&w6=Computer+internet+security&c=6&s=230&.sig=OCFX-MP v3cQROoYDEaexxA> internet security _____ YAHOO! GROUPS LINKS * Visit your group "php_mysql <http://groups.yahoo.com/group/php_mysql> " on the web. * To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> * Your use of Yahoo! Groups is subject to the Yahoo! <http://docs.yahoo.com/info/terms/> Terms of Service. _____ [Non-text portions of this message have been removed] ------------------------ Yahoo! Groups Sponsor --------------------~--> Most low income households are not online. Help bridge the digital divide today! http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/CefplB/TM --------------------------------------------------------------------~-> The php_mysql group is dedicated to learn more about the PHP/MySQL web database possibilities through group learning. Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/php_mysql/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/
