CodeIgniter Forums

Full Version: create newsletter signup with bootstrap and codeigniter
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
Nice job fakhrawy. Will use this tutorial in our new project. Thanks
(02-25-2018, 04:30 PM)fakhrawy Wrote: [ -> ]in this tutorial we will learn how to make a newsletter popup form with codeigniter and bootstrap, and the flow will be like this:

...

This is really a simple and nice tutorial and has helped me create newsletter signup in my first attempt.
(02-25-2018, 04:30 PM)fakhrawy Wrote: [ -> ]in this tutorial we will learn how to make a newsletter popup d bal form with codeigniter and bootstrap, and the flow will be like this:
...

This is a very nice tutorial which is going to help me in my current project.