'dot' is only printing first element of array in HTML forms

From: Date: Fri, 28 Jul 2000 16:09:52 +0000
Subject: 'dot' is only printing first element of array in HTML forms
Groups: php.general 
Request: Send a blank email to php-general+get-8804@lists.php.net to get a copy of this message
running PHP4.01, i have a print statement which prebuilds an HTML form...typical snippet is: . . . <td>Last Name</td><td align=left><input type=text name=givenname maxlength=25 value=" . $attrib[0]["givenname"][0] . "></td> . . . the weird thing is that if $attrib[0]["givenname"][0] contains multiple words (eg 'one two three') which are correctly displayed by print $attrib[0]["givenname"][0] in the above context i only get the first word in the prefilled form (in this case 'one')... am i missing something really basic? thnx

« previous php.general (#8804) next »