Re: Display variable with spaces
| From: | Analysis & Solutions | Date: | Wed, 13 Aug 2003 16:00:55 +0000 |
| Subject: | Re: Display variable with spaces | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159452@lists.php.net to get a copy of this message | ||
On Wed, Aug 13, 2003 at 11:56:43AM -0400, Pushpinder Singh Garcha wrote:
> <input name="email_1" type="text" id="email_1"
> size="50" value = <?
> echo "$email_1";
> /// 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
You need to write valid HTML. Put quotes around the value. You don't
need quotes around the variable. Plus, close the element, of course.
<input name="email_1" type="text" id="email_1"
size="50"
value="<?php echo $email_1; ?>" />
--Dan
--
FREE scripts that make web and database programming easier
http://www.analysisandsolutions.com/software/
T H E A N A L Y S I S A N D S O L U T I O N S C O M P A N Y
4015 7th Ave #4AJ, Brooklyn NY v: 718-854-0335 f: 718-854-0409