• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Codeigniter AJAX validation email form

#10
[eluser]LuckyFella73[/eluser]
You have to decide if you want to submit the form via ajax
or just validate. If you only want to validate the form via
ajax the js-success message makes no sense anymore.

What you need is:
- a controller method only for validating the form input
-> this method only validates! no email is send here, no views are loaded

- a controller having all the validation and email functions and views
-> here you set a success message send to the view in case the validation
went through.

- a js function that calls the ajax validation method
-> this function calls the validation method of the ajax controller and
tells your form if the validation went through or not. If not you
display the error message. If the form input was valid the form is
send to the controller (page request) having the validation AND mail function and views.


Messages In This Thread
Codeigniter AJAX validation email form - by El Forum - 11-15-2012, 04:23 AM
Codeigniter AJAX validation email form - by El Forum - 11-15-2012, 04:52 AM
Codeigniter AJAX validation email form - by El Forum - 11-15-2012, 07:39 AM
Codeigniter AJAX validation email form - by El Forum - 11-15-2012, 11:20 AM
Codeigniter AJAX validation email form - by El Forum - 11-16-2012, 03:46 AM
Codeigniter AJAX validation email form - by El Forum - 11-16-2012, 04:18 AM
Codeigniter AJAX validation email form - by El Forum - 11-16-2012, 04:32 AM
Codeigniter AJAX validation email form - by El Forum - 11-16-2012, 04:40 AM
Codeigniter AJAX validation email form - by El Forum - 11-16-2012, 04:46 AM
Codeigniter AJAX validation email form - by El Forum - 11-16-2012, 05:57 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.