Put quotes around your value <input name='description' value='Name Badge' ...
vs <input name='description' value=Name Badge ... HTML will see the Badge or anything after a space as an extra attribute to the tag. ---John Holmes... > -----Original Message----- > From: Mark Colvin [mailto:[EMAIL PROTECTED]] > Sent: Friday, July 12, 2002 6:10 AM > To: Php (E-mail) > Subject: [PHP] Displaying Database Results > > I have a php script that queries a MySQL database and I loop through the > results displaying them as follows: > > echo "<td width='100'><input name='description' type='text' size='45' > maxlength='20' value=".StripSlashes(mysql_result($badgedetails, $i, > 'descr'))." tabindex='1'/></td>"; > > The problem is that as per the example above, the text displayed is "Name" > but it should be "Name Badge". With all my fields, the text is displayed > OK > until it hits a space. Why does this occur? > > > **************************************************** > This e-mail is intended for the recipient only and > may contain confidential information. If you are > not the intended recipient then you should reply > to the sender and take no further ation based > upon the content of the message. > Internet e-mails are not necessarily secure and > CCM Limited does not accept any responsibility > for changes made to this message. > Although checks have been made to ensure this > message and any attchments are free from viruses > the recipient should ensure that this is the case. > **************************************************** > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php