Einstellen von HTML Frame src auf google.com; funktioniert nicht
Ich habe den folgenden PHP-Code:
<code><?php require_once("support.php"); $query = $_POST["search"]; $google = "http://www.google.com/search?q=" . $query; $bing = "http://www.bing.com/search?q=" . $query; $yahoo ="http://search.yahoo.com/search?p=" . $query; $ask = "http://www.ask.com/web?q=" . $query; $body= "<html><head>"; $body .= "<script src=\"scripts.js\"></script>"; $body .= "</head>"; $body .= "<frameset rows=\"50%,50%\" cols=\"50%,50%\" >"; $body .= "<frame src=\"$google\" />"; $body .= "<frame src=\"$bing\" />"; $body .= "<frame src=\"$yahoo\" />"; $body .= "<frame src=\"$ask\" />"; $body .= "</frameset>"; $body .= "</html>"; echo $body; ?> </code>
welches das folgende html erzeugt:
<code><html> <head> <script src="scripts.js"></script> </head> <frameset rows="50%,50%" cols="50%,50%" > <frame src="http://www.google.com/search?q=adf" /> <frame src="http://www.bing.com/search?q=adf" /> <frame src="http://search.yahoo.com/search?p=adf" /> <frame src="http://www.ask.com/web?q=adf" /> </frameset> </html> </code>
Wenn ich dies in Google Chrome öffne, erhalte ich 4 Frames mit dem erwarteten Inhalt aus den obigen URLs. aber im ersten bild, wer src von google ist, bekomme ich nichts; nur ein leerer Rahmen. Hast du eine Idee, was hier los ist?
Vielen Dank