Script for creating the file exchange function (2)

Source: Internet
Author: User

// Upload. php
This is the interface for uploading files, which can be made in any editor. Note that
Enctype = "multipart/form-Data" section. This must not be an error; otherwise, the server will not know that you are uploading files.
There is nothing else to say. You can do better.

<HTML>
<Head>
<Title> File Upload </title>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
</Head>

<Body bgcolor = "# ffffff">
<Br>
<Br>
<Br>
<Br>
<Br>
<Br>
<Br>
<Form enctype = "multipart/form-Data" name = myform action = do. php method = "Post">
<Table width = "600" border = "1" cellspacing = "0" cellpadding = "0" align = "center" Height = "160" bgcolor = "# e2e3fe" bordercolorlight = "& quot; #006699 & quot; bordercolordark = & quot; # ffffff & quot;>
<Tr>
<TD colspan = "4" Height = "40">
<Div align = "center"> File Upload </div>
</TD>
</Tr>
<Tr>
<TD width = "80" Height = "40">
<Div align = "center"> Select Upload File </div>
</TD>
& Lt; TD width = "170" Height = "40" & gt;
<Div align = "Left">
<Input type = "file" name = "myfile">
</Div>
</TD>
<TD width = "80" Height = "40">
<Div align = "center"> select the file type </div>
</TD>
& Lt; TD width = "170" Height = "40" & gt;
<Div align = "Left">
<Select name = "type" size = "1">
<Option value = "notification" selected> notification </option>
<Option value = "file delivery"> file delivery </option>
<Option value = "report file"> report file </option>
</SELECT>
</Div>
</TD>
</Tr>
<Tr>
<TD width = "80" Height = "40">
<Div align = "center"> Uploader </div>
</TD>
& Lt; TD width = "170" Height = "40" & gt;
<Div align = "Left">
<Input type = "text" name = "Uploader" maxlength = "20">
</Div>
</TD>
<TD Height = "40">
<Div align = "center"> upload date </div>
<Div align = "Left"> </div>
</TD>
<TD Height = "40">
<Input type = "text" name = "date" value = "<? Print (date ("Y-n-J");?> ">
</TD>
</Tr>
<Tr>
<TD Height = "40">
<Div align = "center"> </div>
<Div align = "Left"> </div>
<Div align = "center"> </div>
<Div align = "center"> file description </div>
</TD>
<TD colspan = "3" Height = "40">
<Input type = "text" name = "fileshow" size = "60">
</TD>
</Tr>
<Tr>
<TD colspan = "4" Height = "40">
<Div align = "center">
<Input type = "Submit" name = "Submit" value = "Upload">
</Div>
</TD>
</Tr>
</Table>
</Form>
</Body>
</Html>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.