Re: issue a value on header, not working..

From: Date: Tue, 27 Jul 2004 04:10:16 +0000
Subject: Re: issue a value on header, not working..
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-191937@lists.php.net to get a copy of this message
--- Louie Miranda <lmiranda@gmail.com> wrote: > This outputs a filename on $catchresult, and im > working on redirecting > it to that file via header. But when ever i run this > the value of > $catchresult is not being pass to the header() on > php. > > $catchresult = $db_view->getOne($getfile); > header('Location: clients/FILES/$catchresult'); > > Hmm, it seems simple but, its really not working.. Yes it is simple just change your single quotes to double quotes. i.e. header("Location: clients/FILES/$catchresult"); zareef ahmed > > -- > Louie Miranda > http://www.axishift.com > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > ===== Zareef Ahmed :: A PHP Developer in Delhi(India). Homepage :: http://www.zasaifi.com __________________________________ Do you Yahoo!? New and Improved Yahoo! Mail - 100MB free storage! http://promotions.yahoo.com/new_mail

« previous php.general (#191937) next »