开发者

Submit HTML Form with fields and file using Ajax and php

I am a newbie in web development. I working on a project where the site has a Career page where the details ie name, sex, etc with a resume has 开发者_如何学Goto be submitted.

I have implemented it using Ajax and Jquery, but the problem is I am not getting the file details in the PHP when the form is submitted.


do you use <form action="upload_file.php" method="post" enctype="multipart/form-data">?

Start debugging by printing everyting with var_dump($_POST) or print_r($_POST)


You said you're newbie, i will recommend you to learn any php framework such as Codeigniter for this stuff instead of messing up with your code CodeIgniter

You will end up saying that is PHP that easy?


add the action='formular.php' ... like

<form id="contactform" name="contactform" method="post" enctype="multipart/form-data" action="your_php_file.php>
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜