Problem - jQuery post method including mod_rewrite
Hi all,
I have problem with sending post request via jQuery method. Some explanation:
!!! This case is working on my private PC perfectly fine.
I'm using simple post method to send information to php script:
-
$.post('do.php', {name: "John", age: "25"} , function(data){
alert(data);
});
PHP Script
- <?php
- echo 'post request:';
- print_r($_POST);
- ?>
It's preatty simple...
As I wrote on my PC is working fine! Unfortunately I uploaded it to 1ana1 servers.... and this is pain in the ass!! :)
When I'm using it on serwer I just get text "post request" and empty array => Array()
Can anybody help with this issue ? what can be wrong ?
I'm using mod_rewrite on my PC and 1and1 serwer. I'm getting text back so I belive that the address is fine....
.... anybody...
Cry for help..
Krystian