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

  • Home
  • SEARCH
  • 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 6059155
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:40:45+00:00 2026-05-23T08:40:45+00:00

This is code is giving an error(codeigniter code) Parse error: syntax error, unexpected T_OBJECT_OPERATOR

  • 0

This is code is giving an error(codeigniter code)

Parse error: syntax error, unexpected T_OBJECT_OPERATOR on line 25

Updated

    <?php
class Main extends CI_Controller {



    public function index()
    {
        //$this->load->view('welcome_message');
        $this->load->helper('form');
        $this->load->helper('url');
        $this->load->view('feedback');
    }

    function submit()
    {
    $this->load->helper(array('form', 'url'));
    $this->load->library('form_validation');
    $this->load->helper('security');

    $data['course'] = $this->input->$this->input->post('course_attended');
    $data['trainer'] = $this->input->$this->input->post('trainer');
    $data['name'] = $this->input->$this->input->post('name');
    $data['company'] = $this->input->$this->input->post('company');
    $data['designation'] = $this->input->$this->input->post('designation');
    $data['phone'] = $this-input->$this->input->post('phone');
    $data['company_email'] = $this->input->$this->input->post('notes');
    $data['personal_email'] = $this->input->$this->input->post('personal_email');
    $data['address'] = $this-input->$this->input->post('address');
    $data['q0'] = $this->input->$this->input->post('q0');
    $data['q1'] = $this->input->$this->input->post('q1');
    $data['q2'] = $this->input->$this->input->post('q2');
    $data['q3'] = $this->input->$this->input->post('q3');
    $data['q4'] = $this->input->$this->input->post('q4');
    $data['q5'] = $this->input->$this->input->post('q5');
    $data['q6'] = $this->input->$this->input->post('q6');
    $data['q7'] = $this->input->$this->input->post('q7');
    $data['q8'] = $this->input->$this->input->post('q8');
    $data['q10'] = $this->input->$this->input->post('q10');
    $data['q11'] = $this->input->$this->input->post('q11');
    $data['aspects'] = $this->input->$this->input->post('aspects');
    $data['comments'] = $this->input->$this->input->post('comments');
    $data['ipaddress'] = $this->input->ip_address();
    $data['stamp'] = $now;


    //echo 'hi';
    print_r($data);

    }



}
?>
  • 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-05-23T08:40:45+00:00Added an answer on May 23, 2026 at 8:40 am

    You are missing a > character in two of your property accesses:

    $data['phone'] = $this-input->$this->input->post('phone');
    ...
    $data['address'] = $this-input->$this->input->post('address');
    

    Should be

    $data['phone'] = $this->input->$this->input->post('phone');
                           ^
    ...
    $data['address'] = $this->input->$this->input->post('address');
                             ^
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This code is giving me error on line 10 in IE6. That is, var
I'm using this php code. but it's giving error Deprecated: Function eregi() is deprecated
This code giving error in IE Internet Explorer Cannot Open the Internet Site Operation
This code is giving me this error: The object cannot be deleted because it
This code giving me fits. Returns the error: The given ColumnName 'COURSENAME' does not
this code is giving me error: error in converting datatype nvarchar to bigint this
This code is giving an error when trying to update the database Error:An object
This snippet of Perl code in my program is giving the wrong result. $condition
this code always returns 0 in PHP 5.2.5 for microseconds: <?php $dt = new
I'm trying to understand whay i get an error on this code: (the error

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.