print "<input type=text maxlength=30 size=30 value='$Ship_Company'>\n";
seems to be the problem, changing it to
print "<input type=text maxlength=30 size=30 value="$Ship_Company">\n";
while this will fix that problem, when $Ship_Company contains a double quote ("), you'll run into a similar problem. so to make that work, do this:
<?
$Ship_Company = str_replace("\"", """, $Ship_Company);
print "<input type=text maxlength=30 size=30 value="$Ship_Company">\n";
?>
As a side note, you don't need to do all those print statements unless you really like to.
this will generate the same effect
table width="340" border="0" align="left" bgColor="white">
<tr>
<td align="left">Company</td>
<td align="left">
<input type=text maxlength=30 size=30 value="<? echo $Ship_Company ?>"><td>
</tr>
</table>
That will easily allow you to properly quote your attributes.
Also, you may be able to substitute
<?= $Ship_Company ?>
for
<? echo $Ship_Company ?>
depending on your php config..
hth.