(07-16-2017, 11:51 PM)Martin7483 Wrote: Are you posting an empty form on purpose?
Because as shown in your posted image, the form elements returned by $('#form').serialize() are all empty
I did spot this in your HTML
Code:
</form>
<!-- <input type="submit " name="regisSubmit " class="btn-primary " value="Submit " /> -->
<button type="submit " value="submit " onclick="save() " class="btn btn-primary ">Save</button>
Your submit button should be placed before the closing form tag.
Also pass the form as an argument to the save function. You will then know for sure that the correct form will be serialized
[code]
<button type="submit " value="submit " onclick="save(this.form)" class="btn btn-primary ">Save</button>
</form>
Sir,
I already change that mistake ( button below the closing form tag ). I already successfully submitted the form without the Ajax. Now I'm working on Ajax. It takes time for me coz I'm new in web development. Thanks for the TIME
Note: I tried But it's not working. Using the var_dump($this->input->post(NULL, TRUE)); still array is EMPTY