Re: Very simple Q:

From: Date: Thu, 31 Aug 2000 03:26:02 +0000
Subject: Re: Very simple Q:
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-14505@lists.php.net to get a copy of this message
Eric writes: > > Hello, > > I'm trying to produce this: > > Mr Seller <seller@hotmail.com> > > This: > > $header="$data[seller_fname] $data[seller_lname] "; > $header.="<$data[seller_email]>"; > echo $header; > > produces: > > Mr Seller To hazard a guess, you're looking at this in a browser. Check out View Source, and you should find that it's working perfectly--your browser is simply interpreting the '<' to mean that a tag is starting, and since it doesn't understand the tag '<seller@hotmail.com>', it's (quite properly) ignoring it. Try changing the last line to: echo htmlspecialchars($header); ...and it should work. -- +----------------------------------------------------------------+ |Torben Wilson <torben@php.net> Netmill iTech| |http://www.coastnet.com/~torben http://www.netmill.fi| |Ph: 1 250 383-9735 torben@netmill.fi| +----------------------------------------------------------------+

« previous php.general (#14505) next »