see if any of this makes sense to you. i'm in unfamiliar waters here.
looking at your ppinc through my browser i see the scripting. hence your desire to upload in binary. i think the binary issue maybe due to the chinese characters. however this messes up your perl, try setting up your html editor and/or plain text editor to unix carriage returns. this is the major issue in the difference between binary and ascii other than character issues. so if your editor uses unix LF by default instead of windows then you maybe ok. not sure. be sure to test and make notes of changes to your program(s) so you can resort to previous settings if necessary. editpad lite allows for 32bit plain text and you can change these options from windows, unix or mac. actually you can edit in windows with your html editor then save. open with editpad lite then convert to unix and save as a "working" file. this way you wont have to change anything other than the file version. one for editing and one for uploading.
looking at your step one source i'm seeing the following...
Quote:
<TABLE WIDTH="90%" BORDER=1 CELLPADDING=4 CELLSPACING=0 BGCOLOR="#ffffff">
<TR>
<FONT FACE="宋体" SIZE=2 color="#333333">
<TH BGCOLOR="#F1B81B"><FONT FACE="宋体" SIZE=2 color="#333333"> 商品名称 </FONT></TH>
<TH BGCOLOR="#F1B81B"><FONT FACE="宋体" SIZE=2 color="#333333"> 单价 </FONT></TH>
<TH BGCOLOR="#F1B81B"><FONT FACE="宋体" SIZE=2 color="#333333"> 数量 </FONT></TH>
<TH BGCOLOR="#F1B81B"><FONT FACE="宋体" SIZE=2 color="#333333"> 小计 </FONT></TH>
<TH BGCOLOR="#F1B81B"><FONT FACE="宋体" SIZE=2 color="#333333"> 运费 </FONT></TH>
<TH BGCOLOR="#F1B81B"><FONT FACE="宋体" SIZE=2 color="#333333"> 合计 </FONT></TH>
<TR><TD ALIGN="CENTER"><FONT FACE="宋体" SIZE=2 color="#333333">防缺水氧化高浓度配普肽原液</FONT></TD>
<TD WIDTH="13%" ALIGN="CENTER"><FONT FACE="宋体" SIZE=2 color="#333333">600 元</FONT></TD>
<TD ALIGN="CENTER"><FONT FACE="宋体" SIZE=2 color="#333333">1</FONT></TD>
<TD WIDTH="13%" ALIGN="CENTER"><FONT FACE="宋体" SIZE=2 color="#333333">600 元</FONT></TD>
<TD ALIGN="CENTER"><FONT SIZE="-1">免费</FONT></TD>
<TD WIDTH="13%" ALIGN="CENTER"><FONT FACE="宋体" SIZE=2 color="#333333">600 元</FONT></TD>
</TABLE>
the same problem exists as my previous post. i'm not too sure about the necessity of the </tr> tag following the <th> tags but i'd be willing to bet you can't have more than one <tr> without the </tr> in any instance. this maybe an overlooked issue in the default coding. not sure. however, an </table> tag following and </td> will create problems in any instance. there must be a </tr> prior to the </table>.
i am also seeing the </html> in the wrong place as shown in the above post as well. there is also a table error in this area...
Code:
</TABLE>
</CENTER>
</font>
<P>
<INPUT TYPE=HIDDEN NAME="gateway" VALUE="Offline">
<INPUT TYPE=HIDDEN NAME="order_form" VALUE="Offline">
<INPUT TYPE=reset NAME=" Undo Edits " VALUE =" 恢复信息 ">
<INPUT TYPE=submit NAME =" clear_order_form_button" VALUE =" 清空订单 ">
<INPUT TYPE=submit NAME =" submit_order_form_button" VALUE =" 确认订单 ">
<BR>
</CENTER>
</FORM>
</HTML>
<tr>
you need to take out the </html>. then at the biginning of the above you have </table> then the next html tag is <tr>. this is incorrect in any context.
then at the bottom of the form you have...
Code:
</td>
</tr>
</CENTER>
</BODY>
</HTML>
it should be...
Code:
</td>
</tr>
</table>
</CENTER>
</BODY>
</HTML>
having seen these errors i think maybe you should forget about the unix/windows carriage return thingy and stick with transferring these files in ascii only. you need to fix the basic html. also, in the store header you need to know how many tables are not closed in the header then compare to when and how they're closed in the footer. i haven;t examined the relationship but this is a common problem as well.
d