haidong 发表于 2010-2-24 13:42:21

PHP的FTP学习(四)

&lt;!-- code for index.html begins here --&gt; <BR>&lt;html&gt; <BR>&lt;head&gt; <BR>&lt;basefont face=arial&gt; <BR>&lt;/head&gt; <BR><BR>&lt;body&gt; <BR><BR>&lt;table border=0 align=center&gt; <BR>&lt;form action="actions.php" method=post&gt; <BR>&lt;input type=hidden name=action value=CWD&gt; <BR>&lt;tr&gt; <BR>&lt;td&gt; <BR>Server <BR><BR>&lt;/td&gt; <BR>&lt;td&gt; <BR>&lt;input type=text name=server&gt; <BR>&lt;/td&gt; <BR>&lt;/tr&gt; <BR><BR>&lt;tr&gt; <BR>&lt;td&gt; <BR>User <BR>&lt;/td&gt; <BR>&lt;td&gt; <BR>&lt;input type=text name=username&gt; <BR>&lt;/td&gt; <BR>&lt;/tr&gt; <BR><BR>&lt;tr&gt; <BR>&lt;td&gt; <BR>Password <BR>&lt;/td&gt; <BR>&lt;td&gt; <BR>&lt;input type=password name=password&gt; <BR>&lt;/td&gt; <BR>&lt;/tr&gt; <BR><BR>&lt;tr&gt; <BR>&lt;td colspan=2 align=center&gt; <BR>&lt;input type="submit" value="Beam Me Up, Scotty!"&gt; <BR>&lt;/td&gt; <BR>&lt;/tr&gt; <BR><BR>&lt;/form&gt; <BR>&lt;/table&gt; <BR><BR>&lt;/body&gt; <BR>&lt;/html&gt; <BR><BR>&lt;!-- code for index.html ends here --&gt; <BR>-------------------------------------------------------------------------------- <BR>-------------------------------------------------------------------------------- <BR>&lt;!-- code for actions.php begins here --&gt; <BR><BR>&lt;html&gt; <BR>&lt;head&gt; <BR>&lt;basefont face=Arial&gt; <BR>&lt;/head&gt; <BR>&lt;body&gt; <BR><BR>&lt;? <BR>/* <BR>-------------------------------------------------------------------------------- <BR>DISCLAIMER: <BR><BR>This is use-at-your-own-risk code. <BR><BR>It is meant only for illustrative purposes_and_is not meant for production environments. No warranties of any kind are provided to the user. <BR><BR>You have been warned! <BR><BR>All code copyright Melonfire, 2000. Visit us at http://www.melonfire.com<BR>--------------------------------------------------------------------------------
页: [1]
查看完整版本: PHP的FTP学习(四)