Welcome Guest, Not a member yet? Register   Sign In
Form action is post but echoing $this->server->input(“REQUEST_METHOD”) shows get
#1

[eluser]sehummel[/eluser]
I am having the strangest problem. I am completely baffled.

I have some basic forms on my website, but they won't post. Here is an example.

Code:
<?php echo form_open('resources/financing'); ?>

... miscellaneous CSS ...

<p>
<label>First Name</label><br>
&lt;?php echo form_input(array('name' => 'FName', 'maxlength' => 19)); ?&gt;
</p>

<p>    
<label>Last Name</label><br>
&lt;?php echo form_input(array('name' => 'LName', 'maxlength' => 30)); ?&gt;
</p>

.... other inputs ...

<br><p class="submit">&lt;?php echo form_submit('submit', 'Submit); ?&gt;</p>
&lt;?php echo form_close(); ?&gt;

This is forms 101 I know, but the form refuses to post. I echo $this->server->input("REQUEST_METHOD") and the page tells me it's GET. I've even tried doing the form in HMTL (even though that's not a best practice) and I get the same result. I've read the documentation and it seems like I'm doing everything fine. I view the source and it shows a proper form action tag:

Code:
&lt;form action="http://example.com/resources/financing" method="POST"&gt;

I copy and paste the HTML into MAMP and the form works, so it's like CodeIgniter is grabbing the POST. All of my forms are not working like this. Anyone have any suggestions? I'm out of ideas.




Theme © iAndrew 2016 - Forum software by © MyBB