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

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>';
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.