|
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
[Back to original message]
|