Try changing your echo string to this:- echo "<input type='text' name='teamName[$team]' value='$outputstring[$team][1]'>";
This will make your code eaiser to read as well as showing when you have a missing Quote as Dash has pointed out; Regards, Rob Howard Database Technician Canberra Deep Space Communication Complex -----Original Message----- From: krizz [mailto:[EMAIL PROTECTED]] Sent: Friday, 20 December 2002 1:25 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] 2 dimension Array... $outputstring is a double dimension string array and should give it's values as "default value" in the html input text boxes. But it stops the strings in the first space character. For example if $outputstring[2][1]=="The Cats" it put in the text box only "The". Any idea? $team=0; while ($team<$NumOfTeams) { echo "<input type=\"text\" name=\"teamName[$team]\" value="; echo $outputstring[$team][1]."\">"; $team+=1; } -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ##################################################################################### This e-mail message has been scanned for Viruses and Content and cleared by MailMarshal ##################################################################################### -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php