2008. 02. 22, péntek keltezéssel 14.32-kor germana ezt írta:
> So....... i was checking my localhost with wireshark (a sniffer) and i
> found that the DATA is send after the POST ¿¿¿???? i dont understand
> why the data is not send completly.....

the problem must be in your ajax library... I don't know what kind of
ajax scripts you use, I've never seen 'nuevoAjax' before, but its
clearly a problem with your javascript, not php. correctly sent requests
contain the post data, so $_POST is not empty if you send anything

greets
Zoltán Németh

> 
> 
> 
> if i do var_dump($_POST) is: array(0){}
> 
> On Fri, 2008-02-22 at 17:41 +0100, Zoltán Németh wrote: 
> > 2008. 02. 22, péntek keltezéssel 12.03-kor germana ezt írta:
> > > Hi!!
> > > 
> > > Im trying to sent data to and php with Ajax, so..
> > > this is what im sending>_url= "table='historia'$'='$''$'string'$''&";
> > > 
> > > then i do:
> > > 
> > > _url = _url.substring(0,_url.length-1)  //quita el & de sobra al final
> > > var ajax = nuevoAjax();
> > >   ajax.open("POST", "atrapalo_x.php", true);
> > >   ajax.setRequestHeader("Content-Type",
> > > "aplication/x-www-form-urlencoded");
> > >   ajax.send(_url);
> > >   
> > >   ajax.onreadystatechange = function()
> > >   {
> > >           if(ajax.readyState == 4)
> > >           {
> > >                   alert(ajax.responseText)
> > >                         .
> > >                         .
> > >                         .
> > > ..............
> > > 
> > > and in the php i do:
> > > 
> > > $datafield=explode("$",str_replace("\'","'",$_POST["table"]));
> > > $main_table="".str_replace("'","",$datafield[0])."";
> > > $main_table=strtolower($main_table);
> > > 
> > > but when i do and echo $datafield[0] or echo $main_table
> > > 
> > > it returns          nothing... just blank
> > > 
> > 
> > and if you var_dump($_POST) what does it show?
> > 
> > greets
> > Zoltán Németh
> > 
> > > 
> > 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to