开发者

Post form with file upload [closed]

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. 开发者_开发百科 Closed 11 years ago.

I was searching an HTML form which consists of some text-box, radio-button, check-box, text-area, select-option and browse fields with validation.

And that form use Ajax or jQuery to post data into a mysql table (each field in a form is mapped in mysql table to create a single record) and in any case (successful entry / error while inserting) also give a message.

But I failed..

any help -or- demo thank you..


You should use the ajax method to send the form data to a PHP script using POST.

http://api.jquery.com/jQuery.ajax/

You know how to process forms "normally" with PHP right? Get data from $_POST, filter it, then add to a database, or mail, or both, etc. With jQuery, it's the same thing, you just need to tell jQuery which HTTP Method you will be using (GET or POST) and direct it to a PHP script that will process the data.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜