create newsletter signup with bootstrap and codeigniter |
in this tutorial we will learn how to make a newsletter popup form with codeigniter and bootstrap, and the flow will be like this:
- User will enter the site ,then we check if there is a JavaScript cookie (ModalShown) set, if found it will appear a clear cookie button, if not found it will wait 3 seconds then appearĀ the bootstrap modal popupĀ form - IF he take and action like (close form, submit form) the modal will disappear, the Ajax request send, the JavaScript cookie set, and the clear cookie button will appear. - IF the user not take any action like click outside the modal form, it will disappear and will appear again for each refresh in the page. - IF you click on clear cookie it will remove the cookie and if you refresh the page the popup will appear again. Now, how to actually add this code to our project, it is very easy, just follow these steps create newsletter signup with bootstrap and codeigniter
|
Welcome Guest, Not a member yet? Register Sign In |