Re: Problems with HTML forms and PHP
| From: | Jonas Jochum | Date: | Sat, 05 Aug 2000 15:05:23 +0000 |
| Subject: | Re: Problems with HTML forms and PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-10254@lists.php.net to get a copy of this message | ||
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Am 05.08.00 um 15:35 hat Dinesh Silva geschrieben:
DS>I've got a form and I've a variable in php that is used as the value of the
DS>form (so that the contents of this variable is displays in the textbox). It
DS>works OK when I have the variable containing only one word, but if it
DS>contains a sentence it only displays the first word.
DS>Can anyone help me?
Put quotation marks around it, like
<input type=text name="foo" value="<? echo $bar; ?>">
^^^ ^^^
or
echo "<input ... value=\"$bar\">";
^^^ ^^^
- --
MfG,
Jonas Jochum
commandline net services
- -------------------------------------------------------------------------
tel: 07223-911794 | cmd:~ # Systemadministration, Netzwerkverwaltung
fax: 07223-911795 | cmd:~ # Einrichtung von *BSD/Linux-Servern
d2 : 0173-5712481 | cmd:~ # Datenbank/Internetprogrammierung
jj@commandline.de | cmd:~ # Webdesign
www.commandline.de |
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.1 (FreeBSD)
Comment: Made with pgp4pine 1.75
iEYEARECAAYFAjmMLTYACgkQF1ki3orczCDt0gCfRoofEgUpllNRl/7d4fTYlGnk
59gAn1jwexFtHdXkfjQ3iWUiAWxyNgo2
=H8Xq
-----END PGP SIGNATURE-----