在表单中上传文件时出现问题 [英] Problem when uploading a file in form

查看:80
本文介绍了在表单中上传文件时出现问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我创建了一个注册页面,最后它要求用户上传简历文件。当用户点击上传按钮上传文件时,它会自动提交表单中输入的所有数据。我希望当用户在点击上传按钮后上传文件时,它应该在同一页面上显示成功上传的消息。然后,当用户单击提交按钮时,应在数据库中输入数据。

我附上了注册表格文件PLZ让我知道如何解决这个问题。

我已经给出了下面所需的代码。

Hi,
Ive created a registration page in which at the last it asks the user to upload the resume file. When the user clicks on the upload button to upload the file it automativcally submits all the data entered in the form. I want that when the user uploads the file after clicking the upload button it should display the message of successful upload on the same page itself. Then when the user clicks on the submit button the data should be entered in the database.
Ive attached the registration form file plz let me know how i can fix this problem.
I ve given the required code below.

展开 | 选择 | Wrap | 行号

推荐答案

你的意思是用户必须点击两次?一次用于上传,一次用于传递表单变量。然后你最好确保你还有2个表格。


Ronald
Do you mean that the user has to click twice? Once for the upload and once for the passing of the form variables. Then you better make sure that you also have 2 forms.

Ronald




i想你的提交按钮名称是提交,是否正确?

请更改您的提交按钮名称。

i think your submit button name is submit, is it correct?
please change your submit button name.



hi,

i认为您的提交按钮名称是提交的,是否正确?

请更改您的提交按钮名称。

i think your submit button name is submit, is it correct?
please change your submit button name.



当你不测试

Why do you care what the submit button name is when you don''t test the

时,你为什么关心提交按钮名称


这篇关于在表单中上传文件时出现问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆