Re: Need a safe way to get user supplied data into a varaible.

From: Date: Mon, 09 Jun 2003 00:41:04 +0000
Subject: Re: Need a safe way to get user supplied data into a varaible.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-150688@lists.php.net to get a copy of this message
On Sun, 2003-06-08 at 17:15, Simon Coggins wrote: > Hi, [snipped for brevity] > I need some way of putting a block of text into a variable without > having to read it in from a file. From the template point of view, all > that happends is a token is replaced with the body of the text. So > reading that in from a file is hard. > > Thanks Single quotes will do this; http://ca.php.net/manual/en/language.types.string.php#language.types.string.syntax.single $body = ' Some text here. '; Hope this helps, Torben -- Torben Wilson <torben@php.net> +1.604.709.0506 http://www.thebuttlesschaps.com http://www.inflatableeye.com http://www.hybrid17.com http://www.themainonmain.com -----==== Boycott Starbucks! http://www.haidabuckscafe.com ====-----

« previous php.general (#150688) next »