Welcome Guest, Not a member yet? Register   Sign In
I cannot receive post data.
#11

[eluser]kjanko[/eluser]
Haider, input data not valid.
POST DATA
No POST data exists

InsiteFX,

Apache Version Apache/2.2.17 (Win32) PHP/5.3.5
Windows 7 Professional Edition x86(32)
#12

[eluser]kjanko[/eluser]
If anyone can test my code on localhost, please do. Bump.
#13

[eluser]WanWizard[/eluser]
No problem here. If I submit your form, var_dump($this->input->post()) gives me
Code:
array
  'username' => string 'username' (length=8)
  'password' => string 'password' (length=8)
#14

[eluser]InsiteFX[/eluser]
Did you use XAMPP or WAMP? Either way they need to be installed in the root of your C: drive!

They have problem if they are installed in a sub-driectory.

Also open up c:\windows\system21\drivers\etc\hosts and edit that file add the line below if it is not there.
Code:
127.0.0.1 localhost

InsiteFX
#15

[eluser]kjanko[/eluser]
I'm using WAMP 2.1
Tried using a very simple form and get the post data from it(without using CI) and it worked. Which means the problem isn't the web server. I'm almost 100% sure it's a CI bug?
#16

[eluser]InsiteFX[/eluser]
Did you look at your error log files to see if it is generating an error?

I know on my Windows 7 Pro 64-bit I have to use the AUTO protocol in config.php

How can it be a CI bug if it works for almost everyone else?

Also what version of CI are you running?

InsiteFX
#17

[eluser]kjanko[/eluser]
[quote author="InsiteFX" date="1309485778"]Did you look at your error log files to see if it is generating an error?

I know on my Windows 7 Pro 64-bit I have to use the AUTO protocol in config.php

How can it be a CI bug if it works for almost everyone else?

Also what version of CI are you running?

InsiteFX[/quote]


DEBUG - 2011-06-30 21:07:46 --> Global POST and COOKIE data sanitized
Which means it receives the data?
#18

[eluser]InsiteFX[/eluser]
Try doing a var_dump of the post data in your view and see if they are being set!

InsiteFX
#19

[eluser]kjanko[/eluser]
$config['index_page'] = 'index.php';

After setting it to index.php it seems to be working now.
#20

[eluser]CodeIgniteMe[/eluser]
I personally think you should change
Code:
<form method="post">
</form>

to

Code:
<form method="POST">
</form>
I had the same issue once and this helped me before.




Theme © iAndrew 2016 - Forum software by © MyBB