You are missing an opening quote: echo "<input type=\"text\" name=\"teamName[$team]\"value=\"".$outputstring[$team][1]."\">"; ^^^^
Try that. -Dash -shad No committee could ever come up with anything as revolutionary as a camel -- anything as practical and as perfectly designed to perform effectively under such difficult conditions. -- Laurence J. Peter On Fri, 20 Dec 2002, krizz wrote: > $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 > > -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php