简体   繁体   English

需要 PHP Mysqli Html 形式的帮助

[英]Need Help In Php Mysqli Html Form

I want to make a form in which when I upload my text file it will appear in the textarea box (the content of the txt csv file to be printed in the textarea box).我想制作一个表单,当我上传我的文本文件时,它会出现在textarea框中(要在textarea框中打印的 txt csv 文件的内容)。 I have done a web search but didn't get any idea.我已经进行了网络搜索,但没有任何想法。

The new JS File API can help you.新的 JS 文件 API 可以为您提供帮助。

If you dont need the file uploaded on your serveur, then take a look here .如果您不需要上传到服务器上的文件,请查看此处 You'll just need to adapt it a little to make it fill the value of your input box (maybe you should use a textarea instead of a simple input here).您只需要稍微调整一下以使其填充输入框的值(也许您应该在此处使用 textarea 而不是简单的输入)。

If you need upload:如果您需要上传:

If I was you, I would make two scripts.如果我是你,我会写两个剧本。 The first one handle upload and redirect to the second one, wich show a page (or the same form as the previous) with the text field updated.第一个处理上传并重定向到第二个,显示更新文本字段的页面(或与前一个相同的表单)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM