Jump to content

what is the problem???


prakash

Recommended Posts

following code works perfectly on IE but it does not works with Mozilla Firefox. What is the problem? any help!!

<?php
$lang=$_GET['lang'];
if ($lang=="fr") {
$location="http://66.249.91.104/translate_c?hl=EN&ie=UTF-8&oe=UTF-8&langpair=en%7Cfr&u=http://www.somedomain.com/&prev=/language_tools";
} elseif ($lang=="de") {
$location="http://66.249.91.104/translate_c?hl=EN&ie=UTF-8&oe=UTF-8&langpair=en%7Cde&u=http://www.somedomain.com/&prev=/language_tools";
} elseif ($lang=="it") {
$location="http://66.249.91.104/translate_c?hl=EN&ie=UTF-8&oe=UTF-8&langpair=en%7Cit&u=http://www.somedomain.com/&prev=/language_tools";
} else {
$location="http://www.somedomain.com";
}

print"<script type=\"text/javascript\" language=\"JavaScript\">
window.location=\"$location\";
</script>";
?>

Link to comment
https://forums.phpfreaks.com/topic/62524-what-is-the-problem/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.