The way you're doing it now, you're first ERASING whatever value passed from
the URL, with
and then trying to use it...
If this ' $file="" ' is some declaration attempt, just drop it, you don't
need to declare variables in PHP. Just check if $file has a value and then
if ($file != "")
Hope it helps.
Pedro Alberto Pontes
<[EMAIL PROTECTED]> wrote in message
I don't mean to be a pain but could someone send me a working example?
I am what you would probably call a 'newbie'
For those who don't know here is my previous message
can't seem to define a varible from the url entered into a browser.
I wish to use the following code or something like it.
$file = "";
//the above is defined from the url
It could be what I was typing in the url bar.
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php