Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7920233
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T16:08:18+00:00 2026-06-03T16:08:18+00:00

Possible Duplicate: CodeIgniter Disallowed Key Characters Im trying to have a form submit to

  • 0

Possible Duplicate:
CodeIgniter Disallowed Key Characters

Im trying to have a form submit to a controller were it is then inserted into a database. It worked for the past couple days but apparently i accidentally changed something because it “randomly” doesn’t work. Any help would be appreciated as i couldn’t figure it out after searching online. Thanks!

PHP

 public function    houses () {
if ($this->input->post()) {
    $bedrooms = $this->input->post('bedrooms');
    $bathrooms = $this->input->post('bathrooms');
    $street = $this->input->post('street');
    $house_number = $this->input->post('house_number');
    $basement = $this->input->post('basement');
    $garage = $this->input->post('garage');
    $fence = $this->input->post('fence');

    $query = $this->db->query('INSERT INTO houses VALUES (NULL, "'.
         $bedrooms.'","'.$bathrooms.'","'.$house_number.'","'.
         $street.'","'.$basement.'","'.$garage.'","'.$fence.'")');
}

$query = $this->db->query("SELECT * FROM houses");

foreach($query->result() as $row) {
    $data['bedrooms'] = $row->bedrooms; $data['bathrooms'] = $row->bathrooms;
    $data['house_number'] = $row->house_number;
    $data['street'] = $row->street; $data['garage'] = $row->garage;
    $data['basement'] = $row->basement; $data['fence'] = $row->fence;
    $data['id'] = $row->id;

    $this->data['houses'][] = $data;
}

$title = 'Houses';
$this->data['title'] = $title;
$this->template->add_css('css/dog.css');
$this->template->write_view('content', 'houses', $this->data);
$this->template->render();
 }

HTML

<form method='post' action='<?php site_url('welcome/houses')?>'>
  <li><span>Bedrooms</span>
    <input type="text" name="be stdClass::$emaildrooms" /></li>
  <li><span>Bathrooms</span>
    <input type="text" name="bathrooms" /></li>
  <li><span>House Number</span>
    <input type="text" name="house_number" /></li>
  <li><span>Street</span>
    <input type="text" name="street" /></li>
 <li>
   <span>Basement</span>
   <select name="basement">
     <option>Yes</option>
     <option>No</option>
   </select><br/>
 </li>
 <li>
   <span>Garage</span>
   <select name="garage">
     <option>Yes</option>
     <option>No</option>
   </select><br/>
 </li>
 <li>
   <span>Fence</span>
   <select name="fence">
     <option>Yes</option>
     <option>No</option>
   </select><br/>
 </li>
 <input type="submit" name="Submit" />
</form>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T16:08:20+00:00Added an answer on June 3, 2026 at 4:08 pm

    Your error is here:

    <input type="text" name="be stdClass::$emaildrooms" />
    

    be stdClass::$emaildrooms contains characters that Codeigniter does not allow in input keys.

    It looks like a mistake anyways, as if stdClass::$email snuck in somehow – maybe while you did a massive search/replace in your files.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Possible Duplicate: CodeIgniter Disallowed Key Characters I have a bit of an issue with
Possible Duplicate: CodeIgniter Disallowed Key Characters When I check all the checkboxes (code below)
Possible Duplicate: Split A4 PDF page into two A5 and back again I have
Possible Duplicate: url encoded forward slashes breaking my codeigniter app This is my controller:
Possible Duplicate: Concatenate many rows into a single text string? I have a query
Possible Duplicate: How should I choose an authentication library for CodeIgniter? What is the
Possible Duplicate: Error : get property of non-object I am new to codeigniter model,
Possible Duplicate: regex for URL including query string I have a text or message.
Possible Duplicate: How can I combine multiple rows into a comma-delimited list in Oracle?
Possible Duplicate: Codeigniter HVMC modular seperation extension URL rewrite / routing I am new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.