Skip to content
Advertisement

Tag: codeigniter

How to move form from center to right

I am working on this login/signup form on CodeIgniter. Got this login/signup code from the internet, but by default, it is in the center. So how do I move this form to the right side of the page? enter image description here Login.html Style.css index.js Answer add float: right to your content. In your css change form class as below

How to show a popup modal in codeIgniter?

I have written a javascript click function to a class to display a popup when the relevant class be clicked. When i just put an alert it gives me the correct output. but the popup modal is doesn’t show up Model I am using following model function And i am calling that method in the following controller funtion Controller Here

Passing string variable with spaces

In the following code: ‘set’ is a string variable which can have spaces in it. I’m noticing when it has spaces it’s not working correctly. How can I fix this? EDIT: For clarity, I’d like to keep the spaces intact. Answer You have to replace intermediate space (‘ ‘) with ‘%20’ using replace(), and eliminate boundary spaces (‘ ‘) using

Advertisement