Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Question

I'm working with Codeigniter. I have created an HTML form which post data to the Controller.

This Form was working perfectly but it suddenly stopped posting data.

HTML:

<form name="frm_search" id="frm_search" method="post" action="http://ip/free/index.php/taskdetails/tabOne/1/ShibNo/asc/">
<input id="order1" name="order1" value="26" type="text" >
<input id="item1" name="item1" value="" type="text" >
</form>
  1. I tried to check the data post in Browser and it shows the data that I input in the input box.

enter image description here

  1. In My index.php I placed the following code to see if it is posted:
echo "CONTENT_TYPE: " . $_SERVER['CONTENT_TYPE'] . "";
$data = file_get_contents('php://input');
echo "DATA: <pre>";
var_dump($data);
var_dump($_POST);
echo "</pre>"; 
exit; 

RESULT:

CONTENT_TYPE: application/x-www-form-urlencoded

string 'order1=26&item1='

array (size=23)
'order1' => string '26' (length=2)
'item1' => string '' (length=0)

But when I print $_POST in controller I get the following:

Array
(
 [order1] => 
 [item1] =>
)
  1. My .htaccess code as follows:

    RewriteEngine on
    
    RewriteCond 1ドル !^(index\\.php|resources|robots\\.txt)
    
    RewriteCond %{REQUEST_FILENAME} !-f
    
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule ^(.*)$ index.php/1ドル [L,QSA]
    

Can someone tell me what's the issue? I'm not able to find out why is it when the data passes to controller it becomes null. The application was running successfully for more than a year but I got this issue suddenly.

Thank you in advance. Kindly let me know if you need any more to help me.

Note: I figured out Oncethat once the page is loaded, If iI edit the name of the input time to to some other name then the data is post successfully.

i.e: instead of order1, If I change the name my editing using inspect element in chromeChrome to "neworder" Then if I submit, the data submits with value to controller. DontDon't know why?

Update: I found some this strange. In the set-cookie of the browser. ItsIt's like a full page of junk.

eachEach time when the page is called i start a new session but i wont kill the existing session. Is that a problem?

Even If i destorydestroy the old session and start new one iI get eh set-cookies in browser. It has to me one.. but in my case iI get more thenthan 6 set cookies in the browser.

I'm working with Codeigniter. I have created an HTML form which post data to the Controller.

This Form was working perfectly but it suddenly stopped posting data.

HTML:

<form name="frm_search" id="frm_search" method="post" action="http://ip/free/index.php/taskdetails/tabOne/1/ShibNo/asc/">
<input id="order1" name="order1" value="26" type="text" >
<input id="item1" name="item1" value="" type="text" >
</form>
  1. I tried to check the data post in Browser and it shows the data that I input in the input box.

enter image description here

  1. In My index.php I placed the following code to see if it is posted:
echo "CONTENT_TYPE: " . $_SERVER['CONTENT_TYPE'] . "";
$data = file_get_contents('php://input');
echo "DATA: <pre>";
var_dump($data);
var_dump($_POST);
echo "</pre>"; 
exit; 

RESULT:

CONTENT_TYPE: application/x-www-form-urlencoded

string 'order1=26&item1='

array (size=23)
'order1' => string '26' (length=2)
'item1' => string '' (length=0)

But when I print $_POST in controller I get the following:

Array
(
 [order1] => 
 [item1] =>
)
  1. My .htaccess code as follows:

    RewriteEngine on
    
    RewriteCond 1ドル !^(index\\.php|resources|robots\\.txt)
    
    RewriteCond %{REQUEST_FILENAME} !-f
    
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule ^(.*)$ index.php/1ドル [L,QSA]
    

Can someone tell me what's the issue? I'm not able to find out why is it when the data passes to controller it becomes null. The application was running successfully for more than a year but I got this issue suddenly.

Thank you in advance. Kindly let me know if you need any more to help me.

Note: I figured out Once page loaded, If i edit the name of the input time to some other name then the data is post successfully.

i.e: instead of order1, If I change the name my editing using inspect element in chrome to "neworder" Then if I submit, the data submits with value to controller. Dont know why?

Update: I found some this strange. In the set-cookie of the browser. Its like a full page of junk.

each time when the page is called i start a new session but i wont kill the existing session. Is that a problem?

Even If i destory the old session and start new one i get eh set-cookies in browser. It has to me one.. but in my case i get more then 6 set cookies in the browser.

I'm working with Codeigniter. I have created an HTML form which post data to the Controller.

This Form was working perfectly but it suddenly stopped posting data.

HTML:

<form name="frm_search" id="frm_search" method="post" action="http://ip/free/index.php/taskdetails/tabOne/1/ShibNo/asc/">
<input id="order1" name="order1" value="26" type="text" >
<input id="item1" name="item1" value="" type="text" >
</form>
  1. I tried to check the data post in Browser and it shows the data that I input in the input box.

enter image description here

  1. In My index.php I placed the following code to see if it is posted:
echo "CONTENT_TYPE: " . $_SERVER['CONTENT_TYPE'] . "";
$data = file_get_contents('php://input');
echo "DATA: <pre>";
var_dump($data);
var_dump($_POST);
echo "</pre>"; 
exit; 

RESULT:

CONTENT_TYPE: application/x-www-form-urlencoded

string 'order1=26&item1='

array (size=23)
'order1' => string '26' (length=2)
'item1' => string '' (length=0)

But when I print $_POST in controller I get the following:

Array
(
 [order1] => 
 [item1] =>
)
  1. My .htaccess code as follows:

    RewriteEngine on
    
    RewriteCond 1ドル !^(index\\.php|resources|robots\\.txt)
    
    RewriteCond %{REQUEST_FILENAME} !-f
    
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule ^(.*)$ index.php/1ドル [L,QSA]
    

Can someone tell me what's the issue? I'm not able to find out why is it when the data passes to controller it becomes null. The application was running successfully for more than a year but I got this issue suddenly.

Thank you in advance. Kindly let me know if you need any more to help me.

Note: I figured out that once the page is loaded, If I edit the name of the input to some other name then the data is post successfully.

i.e: instead of order1, If I change the name my editing using inspect element in Chrome to "neworder" Then if I submit, the data submits with value to controller. Don't know why?

Update: I found some this strange. In the set-cookie of the browser. It's like a full page of junk.

Each time when the page is called i start a new session but i wont kill the existing session. Is that a problem?

Even If i destroy the old session and start new one I get eh set-cookies in browser. It has to me one.. but in my case I get more than 6 set cookies in the browser.

Notice removed Authoritative reference needed by Community Bot
Bounty Ended with JP. Aulet's answer chosen by Community Bot
added 387 characters in body
Source Link
DonOfDen
  • 4.1k
  • 12
  • 71
  • 116

I'm working with Codeigniter. I have created an HTML form which post data to the Controller.

This Form was working perfectly but it suddenly stopped posting data.

HTML:

<form name="frm_search" id="frm_search" method="post" action="http://ip/free/index.php/taskdetails/tabOne/1/ShibNo/asc/">
<input id="order1" name="order1" value="26" type="text" >
<input id="item1" name="item1" value="" type="text" >
</form>
  1. I tried to check the data post in Browser and it shows the data that I input in the input box.

enter image description here

  1. In My index.php I placed the following code to see if it is posted:
echo "CONTENT_TYPE: " . $_SERVER['CONTENT_TYPE'] . "";
$data = file_get_contents('php://input');
echo "DATA: <pre>";
var_dump($data);
var_dump($_POST);
echo "</pre>"; 
exit; 

RESULT:

CONTENT_TYPE: application/x-www-form-urlencoded

string 'order1=26&item1='

array (size=23)
'order1' => string '26' (length=2)
'item1' => string '' (length=0)

But when I print $_POST in controller I get the following:

Array
(
 [order1] => 
 [item1] =>
)
  1. My .htaccess code as follows:

    RewriteEngine on
    
    RewriteCond 1ドル !^(index\\.php|resources|robots\\.txt)
    
    RewriteCond %{REQUEST_FILENAME} !-f
    
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule ^(.*)$ index.php/1ドル [L,QSA]
    

Can someone tell me what's the issue? I'm not able to find out why is it when the data passes to controller it becomes null. The application was running successfully for more than a year but I got this issue suddenly.

Thank you in advance. Kindly let me know if you need any more to help me.

Note: I figured out Once page loaded, If i edit the name of the input time to some other name then the data is post successfully.

i.e: instead of order1, If I change the name my editing using inspect element in chrome to "neworder" Then if I submit, the data submits with value to controller. Dont know why?

Update: I found some this strange. In the set-cookie of the browser. Its like a full page of junk.

each time when the page is called i start a new session but i wont kill the existing session. Is that a problem?

Even If i destory the old session and start new one i get eh set-cookies in browser. It has to me one.. but in my case i get more then 6 set cookies in the browser.

I'm working with Codeigniter. I have created an HTML form which post data to the Controller.

This Form was working perfectly but it suddenly stopped posting data.

HTML:

<form name="frm_search" id="frm_search" method="post" action="http://ip/free/index.php/taskdetails/tabOne/1/ShibNo/asc/">
<input id="order1" name="order1" value="26" type="text" >
<input id="item1" name="item1" value="" type="text" >
</form>
  1. I tried to check the data post in Browser and it shows the data that I input in the input box.

enter image description here

  1. In My index.php I placed the following code to see if it is posted:
echo "CONTENT_TYPE: " . $_SERVER['CONTENT_TYPE'] . "";
$data = file_get_contents('php://input');
echo "DATA: <pre>";
var_dump($data);
var_dump($_POST);
echo "</pre>"; 
exit; 

RESULT:

CONTENT_TYPE: application/x-www-form-urlencoded

string 'order1=26&item1='

array (size=23)
'order1' => string '26' (length=2)
'item1' => string '' (length=0)

But when I print $_POST in controller I get the following:

Array
(
 [order1] => 
 [item1] =>
)
  1. My .htaccess code as follows:

    RewriteEngine on
    
    RewriteCond 1ドル !^(index\\.php|resources|robots\\.txt)
    
    RewriteCond %{REQUEST_FILENAME} !-f
    
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule ^(.*)$ index.php/1ドル [L,QSA]
    

Can someone tell me what's the issue? I'm not able to find out why is it when the data passes to controller it becomes null. The application was running successfully for more than a year but I got this issue suddenly.

Thank you in advance. Kindly let me know if you need any more to help me.

Note: I figured out Once page loaded, If i edit the name of the input time to some other name then the data is post successfully.

i.e: instead of order1, If I change the name my editing using inspect element in chrome to "neworder" Then if I submit, the data submits with value to controller. Dont know why?

I'm working with Codeigniter. I have created an HTML form which post data to the Controller.

This Form was working perfectly but it suddenly stopped posting data.

HTML:

<form name="frm_search" id="frm_search" method="post" action="http://ip/free/index.php/taskdetails/tabOne/1/ShibNo/asc/">
<input id="order1" name="order1" value="26" type="text" >
<input id="item1" name="item1" value="" type="text" >
</form>
  1. I tried to check the data post in Browser and it shows the data that I input in the input box.

enter image description here

  1. In My index.php I placed the following code to see if it is posted:
echo "CONTENT_TYPE: " . $_SERVER['CONTENT_TYPE'] . "";
$data = file_get_contents('php://input');
echo "DATA: <pre>";
var_dump($data);
var_dump($_POST);
echo "</pre>"; 
exit; 

RESULT:

CONTENT_TYPE: application/x-www-form-urlencoded

string 'order1=26&item1='

array (size=23)
'order1' => string '26' (length=2)
'item1' => string '' (length=0)

But when I print $_POST in controller I get the following:

Array
(
 [order1] => 
 [item1] =>
)
  1. My .htaccess code as follows:

    RewriteEngine on
    
    RewriteCond 1ドル !^(index\\.php|resources|robots\\.txt)
    
    RewriteCond %{REQUEST_FILENAME} !-f
    
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule ^(.*)$ index.php/1ドル [L,QSA]
    

Can someone tell me what's the issue? I'm not able to find out why is it when the data passes to controller it becomes null. The application was running successfully for more than a year but I got this issue suddenly.

Thank you in advance. Kindly let me know if you need any more to help me.

Note: I figured out Once page loaded, If i edit the name of the input time to some other name then the data is post successfully.

i.e: instead of order1, If I change the name my editing using inspect element in chrome to "neworder" Then if I submit, the data submits with value to controller. Dont know why?

Update: I found some this strange. In the set-cookie of the browser. Its like a full page of junk.

each time when the page is called i start a new session but i wont kill the existing session. Is that a problem?

Even If i destory the old session and start new one i get eh set-cookies in browser. It has to me one.. but in my case i get more then 6 set cookies in the browser.

Notice added Authoritative reference needed by DonOfDen
Bounty Started worth 100 reputation by DonOfDen
fixed grammar, corrected spelling
Source Link

I amI'm working with Codeigniter. I have created aan HTML form which post data to the Controller.

This Form was working perfectly but it suddenly stopped posting data.

HTML:

<form name="frm_search" id="frm_search" method="post" action="http://ip/free/index.php/taskdetails/tabOne/1/ShibNo/asc/">
<input id="order1" name="order1" value="26" type="text" >
<input id="item1" name="item1" value="" type="text" >
</form>
  1. I tried to check the data post in Browser and it shows the data that i gaveI input in the input box.

enter image description here

  1. In My index.php I placed the following code to see if it is postposted:
echo "CONTENT_TYPE: " . $_SERVER['CONTENT_TYPE'] . "";
$data = file_get_contents('php://input');
echo "DATA: <pre>";
var_dump($data);
var_dump($_POST);
echo "</pre>"; 
exit; 

RESULT:

CONTENT_TYPE: application/x-www-form-urlencoded

string 'order1=26&item1='

array (size=23)
'order1' => string '26' (length=2)
'item1' => string '' (length=0)

But when I print $_POST in controller I get the following:

Array
(
 [order1] => 
 [item1] =>
)
  1. My .htaccess code as follows:

    RewriteEngine on
    
    RewriteCond 1ドル !^(index\\.php|resources|robots\\.txt)
    
    RewriteCond %{REQUEST_FILENAME} !-f
    
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule ^(.*)$ index.php/1ドル [L,QSA]
    

Can some onesomeone tell me what waswhat's the issue. I cant? I'm not able to find out why is it when the data passes to controller it becomingbecomes null. The application was running succesfullsuccessfully for more thenthan a year but i getI got this issue suddenly.

Thank you in advance. Kindly let me know if you need any more to help me.

Note: I figured out Once page loaded, If i edit the name of the input time to some other name then the data is post successfully.

i.e: instead of order1, If iI change the name my editing using inspect elimentelement in chrome to "neworder" Then if iI submit, Thethe data submits with value to controller. Dont know why?

I am working with Codeigniter. I have created a HTML form which post data to Controller.

This Form was working perfectly but suddenly stopped posting data.

HTML:

<form name="frm_search" id="frm_search" method="post" action="http://ip/free/index.php/taskdetails/tabOne/1/ShibNo/asc/">
<input id="order1" name="order1" value="26" type="text" >
<input id="item1" name="item1" value="" type="text" >
</form>
  1. I tried to check the data post in Browser and it shows the data that i gave in the input box.

enter image description here

  1. In My index.php I placed the following code to see if it is post:
echo "CONTENT_TYPE: " . $_SERVER['CONTENT_TYPE'] . "";
$data = file_get_contents('php://input');
echo "DATA: <pre>";
var_dump($data);
var_dump($_POST);
echo "</pre>"; 
exit; 

RESULT:

CONTENT_TYPE: application/x-www-form-urlencoded

string 'order1=26&item1='

array (size=23)
'order1' => string '26' (length=2)
'item1' => string '' (length=0)

But when I print $_POST in controller I get the following:

Array
(
 [order1] => 
 [item1] =>
)
  1. My .htaccess code as follows:

    RewriteEngine on
    
    RewriteCond 1ドル !^(index\\.php|resources|robots\\.txt)
    
    RewriteCond %{REQUEST_FILENAME} !-f
    
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule ^(.*)$ index.php/1ドル [L,QSA]
    

Can some one tell me what was the issue. I cant able to find why when the data passes to controller it becoming null. The application was running succesfull for more then a year but i get this issue suddenly.

Thank you in advance. Kindly let me know if you need any more to help me.

Note: I figured out Once page loaded, If i edit the name of the input time to some other name then the data is post successfully.

i.e: instead of order1, If i change the name my editing using inspect eliment in chrome to "neworder" Then if i submit, The data submits with value to controller. Dont know why?

I'm working with Codeigniter. I have created an HTML form which post data to the Controller.

This Form was working perfectly but it suddenly stopped posting data.

HTML:

<form name="frm_search" id="frm_search" method="post" action="http://ip/free/index.php/taskdetails/tabOne/1/ShibNo/asc/">
<input id="order1" name="order1" value="26" type="text" >
<input id="item1" name="item1" value="" type="text" >
</form>
  1. I tried to check the data post in Browser and it shows the data that I input in the input box.

enter image description here

  1. In My index.php I placed the following code to see if it is posted:
echo "CONTENT_TYPE: " . $_SERVER['CONTENT_TYPE'] . "";
$data = file_get_contents('php://input');
echo "DATA: <pre>";
var_dump($data);
var_dump($_POST);
echo "</pre>"; 
exit; 

RESULT:

CONTENT_TYPE: application/x-www-form-urlencoded

string 'order1=26&item1='

array (size=23)
'order1' => string '26' (length=2)
'item1' => string '' (length=0)

But when I print $_POST in controller I get the following:

Array
(
 [order1] => 
 [item1] =>
)
  1. My .htaccess code as follows:

    RewriteEngine on
    
    RewriteCond 1ドル !^(index\\.php|resources|robots\\.txt)
    
    RewriteCond %{REQUEST_FILENAME} !-f
    
    RewriteCond %{REQUEST_FILENAME} !-d
    
    RewriteRule ^(.*)$ index.php/1ドル [L,QSA]
    

Can someone tell me what's the issue? I'm not able to find out why is it when the data passes to controller it becomes null. The application was running successfully for more than a year but I got this issue suddenly.

Thank you in advance. Kindly let me know if you need any more to help me.

Note: I figured out Once page loaded, If i edit the name of the input time to some other name then the data is post successfully.

i.e: instead of order1, If I change the name my editing using inspect element in chrome to "neworder" Then if I submit, the data submits with value to controller. Dont know why?

Source Link
DonOfDen
  • 4.1k
  • 12
  • 71
  • 116
Loading
lang-php

AltStyle によって変換されたページ (->オリジナル) /