CodeIgniter Forums
No $_POST data - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: No $_POST data (/showthread.php?tid=19357)

Pages: 1 2 3 4


No $_POST data - El Forum - 07-09-2009

[eluser]DiRN[/eluser]
So my problem ended up not being CodeIgniter but WAMP. I didn't realize that WAMP didn't enable mod_rewrite by default. Enabling that did the trick.


No $_POST data - El Forum - 07-09-2009

[eluser]gigas10[/eluser]
<form action="<?php $_SERVER['SERVER_NAME'];?>/index.php/pdf/write" method="POST" enctype="text/plain">

=>

<form action="<?php base_url();?>/index.php/pdf/write" method="POST" enctype="text/plain">


;-)


$_SERVER['SERVER_NAME'] does not return the base url of the application...............


No $_POST data - El Forum - 02-28-2012

[eluser]Unknown[/eluser]
Walked into the same problem, found out that $_SERVER['SERVER_NAME'] was www.mydomain.com. I'm overriding it to mydomain.com (without www.), and it works. Sigh, another 2 hours of my life wasted Sad


No $_POST data - El Forum - 02-28-2012

[eluser]CroNiX[/eluser]
Why not just use the URL helpers (or form helper) to do this stuff for you instead of manually setting it? It's what they are there for.


No $_POST data - El Forum - 10-03-2012

[eluser]Unknown[/eluser]
I had some problems with posting files, I didn't get any post variables.
I was using Codeigiters form:

form_open_multipart('admin/upload/...);


I fixed this problem with:

<form action="admin/upload/..." method="post" >


The codeigniters form displayed:
<form action="http://foo/admin/upload/..." method="post" accept-charset="utf-8" enctype="multipart/form-data">

and the problem it seems to be with enctype="multipart/form-data"