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 8461833
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T13:59:15+00:00 2026-06-10T13:59:15+00:00

This i’m sure is a simple overlook, but its given me quite a headache

  • 0

This i’m sure is a simple overlook, but its given me quite a headache in a short time period.

Im trying to post data from this view:

<?php
if (!$this->tank_auth->is_logged_in()) 
    {
        echo "<a href='index.php/auth/login'>Login</a>";
    } else { ?>
<form method="POST" action="create_community">
    <label>Community Name: </label><input type="text" name="communityname" value="231"/><br>
    <label>Description: </label><br><textarea name="communitydesc"></textarea><br>
    <label>Image Location(URL): </label><input type="text" name="imageloc"/><br>
    <input type="radio" name="privacy" value="public" /> public<br />
    <input type="radio" name="privacy" value="private" /> private<br />
    <input type="radio" name="privacy" value="business" /> business<br />
    <input type='submit'/>
</form>        
<?php    }
?>

create controller is the following:

<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Create extends CI_Controller {

    function __construct()
    {
        parent::__construct();

        $this->load->library('tank_auth');
        $this->load->library('encrypt');
        $this->load->library('session');

        $this->load->model('topbar_model');
        $this->load->model('left_model');
        $this->load->model('right_model');
        /*
        $this->load->model('right_model');
        $this->load->model('left_model');
        $this->load->model('topic_model');
        */
        $this->load->helper('url');
        $this->load->helper('form_helper');
        $this->load->helper('form');

        $this->load->helper(array('form', 'url'));
    $this->load->library('form_validation');
        $this->load->library('security');
        $this->load->library('tank_auth');
        $this->lang->load('tank_auth');
    }

    public function index()
    {
            $this->load->view('create_community');
    }

    public function create_community()
        {
            $this->load->view('templates/head');
            echo "testing"; 
            print_r($this->input->post());
        }

}

create_community shows “testing” but does not show the post. I’ve tried posting individual input contents as well, and just get nothing.

Any ideas?

  • 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-10T13:59:17+00:00Added an answer on June 10, 2026 at 1:59 pm

    The believe $this->input->get_post() is a method call, not a class variable, so you can’t handle like you would $_POST[].

    If you are wanting to follow traditional form processing using POST, use the standard $_POST[] assoc. array, but be aware that there might be a CSRF field that will be included, and that you will need to handle.

    Also, I don’t know how you are routing, but shouldn’t your form action be ‘create/create_community’, unless you are routing past ‘create’ for all calls at this point.

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

Sidebar

Related Questions

This is a pretty simple question, and I searched the previous questions but couldn't
This is simple but I have no idea where I am going wrong. Could
This should be a simple one: I have an observableArray object called To in
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
This is my first time creating a PHP form that will run a MySQL
This question is quite specific. I'm using Symfony2 White October Admin Bundle for generating
This must be a very simple solution that has eluded me this last hour.
This is a super simple issue that I can't figure out. I want to
This has been posted, but I've tried lot of solutions found on SO and
This is a pretty stale question but frankly I'm yet to find it answered

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.