Form Issue
Posted: Sun Aug 01, 2010 4:55 pm
Seems to be some problem with my form, seems that nothing is being sent to the browser
Code: Select all
<?php
if(isset($_POST['user_url'])) {
$user_url = $_POST['user_url'];
$sitemap = "/sitemap.xml";
$API = array(
"webmaster.live.com/webmaster/ping.aspx?siteMap=",
"search.yahooapis.com/SiteExplorerService/V1/updateNotification?appid=YahooDemo&url=",
"www.google.com/webmasters/tools/ping?sitemap=",
"submissions.ask.com/ping?sitemap=",
"api.moreover.com/ping?sitemap=",
"www.bing.com/webmaster/ping.aspx?sitemap=",
);
foreach ($API as $api_url) {
$arg = "http://";
$arg .= $api_url;
$arg .= "http://";
$arg .= $user_url;
$arg .= $sitemap;
echo $arg . "\n";
readfile($arg);
flush();
sleep(10); // 10 seconds, so servers do not balk
};
} else {
echo '<form method="post" action="http://www.contract-developer.tk/services/submit.php">'
.'URL <input type="text" name="user_url"> <input type="submit" name="submit" value="Submit">'
.'</form>';
}?>