You are here: Re: Php Redirect? Or load a new page? « HTML « IT news, forums, messages
Re: Php Redirect? Or load a new page?

Posted by Oli Filth on 09/08/05 10:33

Mark Parnell said the following on 08/09/2005 08:24:
> Previously in alt.html, Nonee <None@none.com> said:
>
>
>>I know there is a header("location: $filename");
>>that could work but it doesn't. What am I missing and how can I do
>>this?

Can you post a *short* sample of code that shows how you're handling
extracting the value from the form, and then how you're using the
header() statement?

NOTE: this would be better off in a PHP NG...

>
>
> Presumably you've already added .php to the filename.
>
> header("location: ".$filename);
>
> At the moment you're trying to send them to a file called "$filename",
> which obviously doesn't exist. Short answer: don't quote the variable
> name.
>

Actually, in PHP, that's fine. With double-quoted strings, PHP performs
in-line variable substitution.



--
Oli

 

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

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