Reputation: 41929
A tutorial I'm following created a form using the code below. The teacher's form has a space to enter text and the ability to upload data, but when I tried it, it only allowed me to browse/upload. There's no box to input text.
There's a link to my site here. http://quoralist.com/sandbox/upload.php
Any ideas why my form doesn't give me space to input text?
<html>
<head>
<title>Upload</title>
</head>
<body>
<form action="upload.php" enctype="multipart/form-data" method="POST">
<input type="file" name="file_upload" />
<input type="submit" name="submit" value="Upload" />
</form>
</body>
</html>
Upvotes: 0
Views: 2402
Reputation: 1038830
It's because you are using Google Chrome or Safari browser :-) Try with IE or FireFox. The <input type="file">
tag is special and the way it is rendered is browser dependent. Here's an article which illustrates how this tag could be styled so that it looks the same among all browsers.
Upvotes: 2