You are here: Re: To redirect if no parameters « PHP Programming Language « IT news, forums, messages
Re: To redirect if no parameters

Posted by Rami Elomaa on 05/19/07 07:30

Robertu kirjoitti:

> $HTTP_STR=$HTTP_POST_VARS;
> $HTTP_STR=$HTTP_GET_VARS;

$HTTP_POST_VARS and $HTTP_GET_VARS are deprecated. It means do not use
these anymore. These will not be avaialable in future versions of php,
instead use $_POST and $_GET.

> if ($dbf=="")
> {header("Location: http://www.pippo.es/");exit()} <<--- missing semicolon ; after exit().

Try not to write everything on one line so you'll see better what is
wrong. It's easier to read.

if ($dbf=="") {
header("Location: http://www.pippo.es/");
exit();
}

--
Rami.Elomaa@gmail.com

"Wikipedia on vähän niinq internetin raamattu, kukaan ei pohjimmiltaan
usko siihen ja kukaan ei tiedä mikä pitää paikkansa." -- z00ze

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация