You are here: Re: What's wrong with header = ('location: pagename.php') ? « PHP Programming Language « IT news, forums, messages
Re: What's wrong with header = ('location: pagename.php') ?

Posted by celalo@gmail.com on 10/04/07 06:45

just write
header ('location: index.php');
instead of
header = ('location: index.php');

header is a function not a variable. dont get confused with the
$headers variable you used. They are tottally different.

On Oct 4, 4:14 am, "Shelly" <sheldonlg.n...@asap-consult.com> wrote:
> "Big Moxy" <bigm...@gmail.com> wrote in message
>
> news:1191458068.443880.280090@g4g2000hsf.googlegroups.com...
>
> > I'm sorry if this turns out to be a double post but I got an error
> > during the first attempt.
>
> > I'm perplexed at the error in the header = ('location: index.php'); I
> > have used this before successfully but this time the syntax checker at
> >http://www.meandeviation.com/tutorials/learnphp/php-syntax-check/
> > issues this message: Parse error: parse error, unexpected '=' in
> > quickform.php on line 48.
>
> That should read:
> header('location: index.php');
>
> The error message was quite explicit!
>
> Shelly

 

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

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