Welcome Guest, Not a member yet? Register   Sign In
Can't POST
#1

[eluser]ouzodestructo[/eluser]
I have developed a site and have put it on my web server but my forms don't post any data.
Have a look at http://www.geneethics.org/contact.

I have put in a print_r($_POST) in my controller to show whats passing (nothing!)

It works on my dev box, so why not here? I have brought it up with my web hosts but they say its not them.

Any ideas whats going on here?
#2

[eluser]Crimp[/eluser]
Enable the profiler in your controller to see what is being passed:
Code:
$this->output->enable_profiler(TRUE);
#3

[eluser]coolfactor[/eluser]
Your site is doing a redirect. I suspect an .htaccess configuration error.

Form submits to:
http://geneethics.org/contact/display

Redirects to:
http://www.geneethics.org/index.php/contact/display

Form data is lost during the redirect.
#4

[eluser]ouzodestructo[/eluser]
Thanks Crimp. I've done that but its not displaying anything. I've updated the page geneethics.org/contact

Could it be the .htaccess file? This works fine on my dev box so could it have to do with server settings?
#5

[eluser]ouzodestructo[/eluser]
Thanks, that sounds about right. I'm not too good with that tho so i'd appreciate some feedback. Here's my .htaccess file:

Code:
<Files .htaccess>
order allow,deny
deny from all
</Files>

ErrorDocument 400 /system/errors/badrequest.html
ErrorDocument 401 /system/errors/authreqd.html
ErrorDocument 403 /system/errors/forbid.html
ErrorDocument 404 /system/errors/notfound.html
ErrorDocument 500 /system/errors/serverr.html

IndexIgnore *

RewriteEngine on
RewriteRule ^$ http://www.geneethics.org/index.php [L]
RewriteCond $1 !^(index\.php|img|css|js|javascript|images|files|assets|javascript|robots\.txt)
RewriteRule ^(.*)$ http://www.geneethics.org/index.php/$1 [L]




Theme © iAndrew 2016 - Forum software by © MyBB