截断从MySql传递到表单的数据(PHP)

Below is a sample line of code from the HTML form that is created and the data is receives:

    Mission: <input readonly type='text' name='mission' value=".$mission.">

It works fine, but the data is truncated. For example, if the mission is "Mission Five", the "Five" gets cut off.

Because you forgot quote your attributes. Your html will be

 <input [..snip..] value=Mission Five>
                      ^----^---attribute + value
                                   ^---new attribute with no value

Try

Mission [..snip..] value='" . $mission ."'>
                         ^---------------^

producing

Mission [..snip..] value='Mission Five'>

The value field is missing quotes

Mission: <input readonly type='text' name='mission' value=".$mission.">

should be more like

Mission: <input readonly type='text' name='mission' value='".$mission."'>

This assumes that you are echoing this out as a string with PHP and the string is enclosed in double quotes initially ( which is how it appears due to ".$mission." )