Welcome Guest, Not a member yet? Register   Sign In
Does CodeIgniter convert all post variables to get variables?
#4

(This post was last modified: 02-10-2016, 12:58 PM by cupboy.)

(02-09-2016, 05:08 PM)siburny Wrote: I don't think CI would move POST vars to GET. Maybe snippet of code you are using would help troubleshoot it.

Here is some of the code:

javascript code in page:

string1 = '<input type="hidden" name="searchDateStart" value=' + dblquote + searchBegin + dblquote + ' />';
$('#frmMain').append(string1);
 document.forms[0].action = link;
 document.forms[0].submit();  
 
 web address after the form is submitted:
 
//xxx.com/xxx/xxx/date?searchDateStart=2016-02-24&searchDateEnd=2016-02-29

note; had to remove the http to prevent the forum from changing the above to a link

and here is some code from the model:
     $allPost = $this->input->post();
     $allGet = $this->input->get();

$allPost was 0, $allGet was 2
Reply


Messages In This Thread
RE: Does CodeIgniter convert all post variables to get variables? - by cupboy - 02-10-2016, 12:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB