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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T21:17:11+00:00 2026-05-18T21:17:11+00:00

Seems to be a browser issue, as in firefox it is working fine but

  • 0

Seems to be a browser issue, as in firefox it is working fine but not in chrome.

Why is it that when I submit my php form to insert data into a mysql db table, then check the table. I see my newly created row with the data in it and also an extra row with nothing in it?

My controller:

    function Admin() {
       parent::Controller();

       $this->dx_auth->check_uri_permissions();

       $this->load->model('alert_model');
       $data['rows'] = $this->alert_model->check($num_results=4);
       $this->load->view('includes/header', $data);
    }

    function index() {
       $this->load->view('admin/notifications');
       $this->load->view('includes/footer');
    }

    function sendalert() {
       $info = array(
           'msg_author'  => $this->input->post('msg_author'),
           'msg_date'    => $this->input->post('msg_date'),
           'msg_subject' => $this->input->post('msg_subject'),
           'msg_content' => $this->input->post('msg_content')
       );

       $this->send_notification->send($info);
       $this->index();
    }

My Model:

    function send($info) {
       $this->db->insert('msg', $info);
       return;
    }

My View:

<?php echo form_open('admin/sendalert'); ?>

    <label for="msg_subject">Subject</label>
    <input type="text" name="msg_subject" id="msg_subject" />

    <label for="msg_date">Date</label>
    <input type="text" name="msg_date" id="msg_date" />

    <label for="msg_author">From</label>
    <input type="text" name="msg_author" id="msg_author" />

    <label for="msg_content">Content</label>
    <input type="text" name="msg_content" id="msg_content" />

    <input type="submit" value="submit" />

<?php echo form_close(); ?>

Thanks

  • 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-18T21:17:12+00:00Added an answer on May 18, 2026 at 9:17 pm

    Try change

    $this->index();
    

    to

    redirect('admin/index', 'refresh'); 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

For my html form, it seems that I'm unable to create cross browser hover
I'm writing into a session cookie from my plugin in chrome. The browser seems
It seems that jQuery.browser is deprecated in the latest jQuery. The doc recommends that
Firstly, I'm not against Opera. It just seems when I encounter cross browser issues,
I'm having a cross-browser positioning issue with Firefox. I'm using display:table and display:table-cell. Here's
I'm having an issue reading the below XML document in Chrome - nothing seems
So I'm having a cross-browser JavaScript issue. I've got a <select> DOM element that
I have a bit of HTML/JQuery code that only seems to be working for
Firefox and seems to render a hyphen followed by &nbsp; differently to other browsers.
The Pharo dev image ships, by default, with a browser that doesn't seem to

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.