0
echo "<td> <input  type=\"text\" name=\"name$i\" size=\"10\" readonly=\"readonly\" value=";
echo $row['name'];
echo " /> </td>";

currently,if there is a value in column name,i.e mr john,
only mr will be shown in the value.i've check with my mysql_fetch_array and all others,seems like when i echo $row outside the <td>,mr john will appear,only in the <td>,only mr appeared.any suggestions?
btw,the main reason i would want to put name into values because i need to post it to another page,can't change that

2
Contributors
1
Reply
2
Views
8 Years
Discussion Span
Last Post by almostbob
0
echo "<td> <input  type=\"text\" name=\"name$i\" size=\"10\" readonly=\"readonly\" value=\"";
echo $row['name'];
echo "\" /> </td>";

if you see it this way it should show why, else the value field is not delimited, so breaks,

echo '<td><input  type=\"text\" name=\"name$i\" size=\"10\" readonly=\"readonly\" value=\"'.$row['name'].'\" /> </td>';
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.