我有下面的代码完美运行并上传多个图像.
这是html和jQuery代码:
<div class="field" align="left">
<span>
<h3>Upload your images</h3>
<input type="file" id="files" name="files[]" multiple />
</span>
</div>
Run Code Online (Sandbox Code Playgroud)
脚本如下:
<style>
input[type="file"] {
display:block;
}
.imageThumb {
max-height: 75px;
border: 2px solid;
margin: 10px 10px 0 0;
padding: 1px;
}
</style>
<script type="text/javascript">
$(document).ready(function() {
if(window.File && window.FileList && window.FileReader) {
$("#files").on("change",function(e) {
var files = e.target.files ,
filesLength = files.length ;
for (var i = 0; i < filesLength ; i++) {
var f = files[i]
var fileReader = new FileReader(); …Run Code Online (Sandbox Code Playgroud) 我的系统是 MAC,我正在运行 Xampp for mac。
我搜索了很多解决方案,我认为这一定是因为我的 .htaccess 丢失了文件,我在 wordpress 中的所有其他链接甚至我的帖子、页面(除了我的主页)都重定向到本地主机/仪表板,这是 xampp 的仪表板。
# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /wordpress
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>
# END WordPress
Run Code Online (Sandbox Code Playgroud)
这是我的 .htaccess 文件,我已经设置好了
<Directory />
AllowOverride all
Require all denied
</Directory>
Run Code Online (Sandbox Code Playgroud)
在 apachehttpd.conf文件中
现在我还能做什么?我坚持这个,即使我点击我的 wp-admin 页面上的永久链接,它也显示没有找到对象,404 错误。页面退出,帖子存在,一切都存在,但我仍然只能看到主页。
我试图使用PHP表单执行mysql查询.以下是表格
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" href="signup.css" type="text/css">
<script type="text/javascript" src="form_val.js"></script>
<title>Untitled Document</title>
</head>
<body bgcolor="#0ca3d2">
<div align="right">
<h2><a href="index.php">Go back</a></h2>
</div>
<div class="form-style-10">
<h1>Sign Up Now!<span>Sign up and tell us what you think of the site!</span></h1>
<form action="#" method="post" name="myForm" onSubmit="CheckTerms()">
<div class="section"><span>1</span>First Name & Address</div>
<div class="inner-wrap">
<input type="text" name="First_Name" placeholder="Enter First Name" id="fname">
<label id="error" style="color:red"></label>
<input type="text" name="Last_Name" placeholder="Enter last Name"/>
<label id="error_l" style="color:red"></label>
<select name="gender">
<option value="Male">Male</option>
<option value="Female">Female</option>
</select>
</div> …Run Code Online (Sandbox Code Playgroud)