Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #14937

Re: empty $_POST after submitting

From Jerry Stuckle <jstucklex@attglobal.net>
Newsgroups comp.lang.php
Subject Re: empty $_POST after submitting
Date 2015-02-17 10:23 -0500
Organization A noiseless patient Spider
Message-ID <mbvmbd$avf$1@dont-email.me> (permalink)
References <4c46ceaf-b7fa-46b9-801d-a0107a5f6774@googlegroups.com>

Show all headers | View raw


On 2/17/2015 9:51 AM, RAM wrote:
> I programmed a website in PHP5 (CodeIgniter). I worked fine, but suddenly I have a problem with a form.
> 
> <form action="http://localhost/~robert/index.php/announcement/insert" method="post" accept-charset="utf-8" id="announcement" name="announcement" enctype="multipart/form-data">
> ...
> <input type="text" id="client_name" name="client_name" maxlength="60" size="60" style="width: 60ex" value="">
> ...
> <input id="submit_announcement" name="submit_announcement" type="submit" class="default_button" value="Submit">
> </form>
> 
> The following code:
> 
> $post = $this->input->post();
> echo 'POST:';var_dump($_POST);
> echo 'post:';var_dump($post);
> $input = file_get_contents('php://input');
> echo 'input:';var_dump($input);
> 
> produces:
> 
> action:string(6) "insert" POST:array(0) { } post:bool(false) input:string(21778207) "-----------------------------1569561979377912223435573637 Content-Disposition: form-data; name="referer_page" http://localhost/~robert/index.php/announcement/insert -----------------------------1569561979377912223435573637 Content-Disposition: form-data; name="client_name" Czerwony Kapturek -----------------------------1569561979377912223435573637 Content-Disposition: form-data; name="client_email" -----------------------------1569561979377912223435573637 Content-Disposition: form-data; nam"... 
> 
> I changed nothing in my php.ini nor in CodeIgniter configuration. As I said, it was working fine so far. Please help, I have little experience.
> Here's my phpinfo:
> 
<snip>

I suggest you try asking CodeIgniter support.  There is no indication
this is a PHP problem (if there were one, millions of websites would be
failing).

When dealing with a product, your best support is almost always to ask
in that product support.  They know their product better than anyone
else, and few, if any, people here have ever used CodeIgniter.

-- 
==================
Remove the "x" from my email address
Jerry Stuckle
jstucklex@attglobal.net
==================

Back to comp.lang.php | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

empty $_POST after submitting RAM <jivanmukta@poczta.onet.pl> - 2015-02-17 06:51 -0800
  Re: empty $_POST after submitting Jerry Stuckle <jstucklex@attglobal.net> - 2015-02-17 10:23 -0500
  Re: empty $_POST after submitting Denis McMahon <denismfmcmahon@gmail.com> - 2015-02-17 17:16 +0000
  Re: empty $_POST after submitting Luuk <luuk@invalid.lan> - 2015-02-17 20:18 +0100
    Re: empty $_POST after submitting RAM <jivanmukta@poczta.onet.pl> - 2015-02-18 01:16 -0800
      Re: empty $_POST after submitting Denis McMahon <denismfmcmahon@gmail.com> - 2015-02-18 14:54 +0000
    Re: empty $_POST after submitting Erwin Moller <erwinmollerusenet@xs4all.nl> - 2015-02-18 11:04 +0100
      Re: empty $_POST after submitting Luuk <luuk@invalid.lan> - 2015-02-21 12:14 +0100
      Re: empty $_POST after submitting Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2015-02-21 17:13 +0100
        Re: empty $_POST after submitting Luuk <luuk@invalid.lan> - 2015-02-21 17:58 +0100

csiph-web