开发者

HTML Forms input box and upload

开发者 https://www.devze.com 2023-02-16 21:27 出处:网络
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. T

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/fo开发者_开发百科rm-data" method="POST">

    <input type="file" name="file_upload" />

    <input type="submit" name="submit" value="Upload" />

    </form>
    </body>
</html>


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消