English 中文(简体)
附有缺省案文的FLE战地
原标题:Populate FILE field with default text

I m 试图重新利用产生FLE田的代码,以便在数据库中添加一些内容时加以使用,并用数据库中已有的数据对(和残疾人)进行详细编辑或观察。 然而,我看不出案文来填补这个领域。 使用:

echo  <input type="file" name="small[]" value="  . $value_from_database .  " DISABLED><br> ;

我没有什么东西? 如果不是的话,是否有体面的工作?

最佳回答

由于安全限制,这可以做到<>而不是<>。 想象这样做是可能的,那么,人们将能够开发这样一个网页:

<!doctype html>
<html lang="en">
    <head><title>Gimme yer passwords.txt!</title></head>
    <body onload="document.upload.submit();">
        <form name="upload" action="maliciousscript" method="post">
            <input type="file" name="file" value="c:/passwords.txt">
            <input type="submit">
        </form>
    </body>
</html>

相反,我仅用一个简单的<代码><input category=“text” Disability> field加以展示。

问题回答

我认为,你可以改变这种状况。 相反,利用隐蔽的投入来传递违约值:

<input category=“hidden” name=“file_default” Value=......> />





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!

热门标签