
31.07.2009, 02:38
|
|
Познающий
Регистрация: 13.12.2008
Сообщений: 75
С нами:
9162406
Репутация:
20
|
|
test пашет , а test2 вместо того чтобы на Yandex - выдаешь страницу ошибки google , как при условии неверного введения ...
PHP код:
<form>
<input type="text" name="url">
</form>
<?php
if(isset($_GET['url']))
{
switch($_GET['url'])//)
{
case "test":
header("location:http://google.ru");
break;
case "test2":
header("location:http://yandex.ru");
default;
header("location:http://google.ru?error");
break;
}
}
?>
|
|
|