Re: Display variable with spaces

From: Date: Wed, 13 Aug 2003 16:01:13 +0000
Subject: Re: Display variable with spaces
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-159453@lists.php.net to get a copy of this message
And I try to display it in the table using this : <input name="email_1" type="text" id="email_1" size="50" value = <? echo "$email_1"; ?>> if I try to echo the variable $email_1, I get the correct value i.e. "thisisa long e-mail address" /// However when it comes to displaying it using the table all I get is the "thisisa" . It simply avoids the spaces. Can anyone tell me why this is happening..?? I am sure it is something pretty minor .... but I just cant seem to get it right.
You need to quote your value attribute. Larry

« previous php.general (#159453) next »