Reputation: 466
im building a file upload/dwnload app in php..im using the following form
<html>
<head>
<title>Upload Index</title>
</head>
<body>
<form enctype=“multipart/form-data” action=“files.php” method=“post”>
<p>Choose your file to upload!
<input name="uploadedfile" type="file" />
<input type="submit" value="Upload">
<br />
And what would you like to call it? <input name=“title” type=“text” />
</p>
<p><br />
</p>
</form>
</body>
</html>
instead of going to the "files.php" it directs itself to some weird URL...something like this: http://project360.in/%C3%A2%E2%82%AC%C5%93files.php%C3%A2%E2%82%AC%C2%9D? uploadedfile=buglog.txt&%E2%80%9Ctitle%E2%80%9D= any idea what should be done to fix this?
Upvotes: 0
Views: 539
Reputation: 94645
Remove smart-quote “ ”
.
<form enctype="multipart/form-data" action="files.php" method="post">
<p>Choose your file to upload!
<input name="uploadedfile" type="file" />
<input type="submit" value="Upload">
<br />
And what would you like to call it? <input name="title" type="text" />
</p>
<p><br />
</p>
</form>
Upvotes: 5