小编BEB*_*EBO的帖子

模态表单使用Jquery .ajax向PHP提交

我试图使用php,jquery .ajax将一个模态表单发布到一个表但它永远不会工作..尝试使用firebug进行调试,我没有看到任何错误.我使用form action ="notes_functions.php"测试了表单,它工作正常.

Profile.php

    <div class="modal-body">

        <form class="noteform" id="notesmodal" method="post">
           <fieldset>      
          <label>Title</label>
                <input type="text" class="form-control" name="note_title" placeholder="Enter a title for your note">
                <label>Note</label>
                <textarea rows="4" cols="50" class="form-control" name="note_content" placeholder="note"></textarea>
                <label>Note type</label>
                <div class="panel-body">
                    <input type="tagsinput" id="teetete" class="tagsinput" value="" />
                </div>                                                  
                <label for="exampleInputFile">Attach a document</label>
                <input type="file" id="exampleInputFile3">
                <p class="help-block">PDF, DOCX and image files are supported.</p>
            <div class="checkbox">
                <label>
                    <input type="checkbox"> Check me out
                    <input type="label" name="note_account" value="<?php echo $acctname ?>"/> 
                </label>
            </div>
            <input type="hidden" name="note_creator" value="<?php echo $_SESSION['username'];?>"/>
              </fieldset> …
Run Code Online (Sandbox Code Playgroud)

php forms ajax jquery

3
推荐指数
1
解决办法
1万
查看次数

标签 统计

ajax ×1

forms ×1

jquery ×1

php ×1