This is my recently developed a set of upload voting integration System, a total of 4 PHP and a number of record files, this is the first view.php, mainly responsible for the display of file lists and uploaded file forms and file names of the test. The addresses are all real addresses, please modify them as appropriate, I will provide specific usage in the last 1 articles.
function Check (theform) {
var tempstr=theform.upfile.value.split ("\");
var files=tempstr[tempstr.length-1].split (".");
if (theform.writer.value== "| | | theform.upfile.value==" ") {alert (" author and filename cannot be empty "); event.returnvalue= false;
if (Escape (Tempstr[tempstr.length-1]). IndexOf ("%u")!=-1) {
Alert ("File name cannot be Chinese");
Event.returnvalue= false;
}
if (files.length<2 | | (files[1]!= "rar" && files[1]!= "zip")) {
Alert ("FileName must end with lowercase zip or rar");
Event.returnvalue= false;
}
}
</script>
<body>
<?php
Col for columns, when there is $uploadto/$col. if (record title), $col. IP, $col. IPD, $col. LST Time Legal
//
Page is the first few pages 1-n
Rowperpage for a few lines per page
if (! $page) $page = 0;
$rowperpage = 5;
if (! $col) Die ("System error");
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.