I have a input with name=”exam[A+]”. I have figured out that when I called $this->input->post(“exam”) it is giving me an error called “Disallowed Key Characters”. I want to add + sign in my key characters. Here is the code in the system file. How do I change the regular expression to add the + sign in the input? Answer Use
Tag: codeigniter
CodeIgniter: 404 Page Not Found on Live Server
I have been developing a small web application with CodeIgniter. After testing it out locally I went to put it on my web server to allow a couple other people test out some features. While navigating to the site I get: – 404 Page Not Found error page When viewing it in my local machine everything loads up and runs
Retrieve JSON POST data in CodeIgniter
I have been trying to retrieve JSON data from my php file.Its giving me a hard time.This is my code Code in my VIEW: Trying to retrieve in my Controller: Outputs Nothing. Here are my headers: My Response which I can See in Developer tools: But in browser, the output is nothing. I am trying to solve it for more
file_exists() not working codeigniter
I am working with codeigniter. I want to display images but if some image is not exist it should show image-not-found-medium.jpg which is dummy image.. below is my code <?php $…
how to update form data in codeigniter
I am new in codeigniter. I am using codeigniter for this project. I have not getting how to update form data in the database. I have inserting,showing data in the databse is done. But I cant understand, how to update data in the database. My controller: model: view: Thank you in advance for your help. Answer You are only passing
How to insert data using CI active record to field names with space?
How to insert data to the fields with name containing space. eg : Insert batch is also not working. Answer Check the following code. Which worked for me. use $db->set method
Codeigniter | Get previous URL and used as back button to previous page
I really wonder how can I do this, I have 3 pages that has the same link going to 1 page, now what I want to do is to have 1 button that is intelligently enough to get which of the 3 pages was used to go to that page and used it as it’s link going back to that
Codeigniter send email with attach file
I am trying to send email on codeigniter with attach file. I always receive email successfully. However , I never receive with attach file. Below is code and highly appreciate for all comments. Answer $this->email->attach() Enables you to send an attachment. Put the file path/name in the first parameter. Note: Use a file path, not a URL. For multiple attachments
Rename URL in Codeigniter
I want to remove /public/index.php from my Codeigniter and Bonfire project URLs.. My current URL: http://localhost/public/index.php/page Desired URL: http://localhost/page but I want the paths for …
Replace number and email with XXXX in a sentence using jQuery
I’d like to replace the numbers and email from the sentences. Example $message = “Hi this is john, my personal no is 1213456789 and my email address is john@gmail.com”. Output: Hi this is john, my personal no is 1213456789 and my email address is john@gmail.com I want the Output to be like this: Output: Hi this is john, my personal