Re: Need To Upload files with PHP and Ajax

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



As usual, a 1 second google or php.net search will net you the answer:

http://us.php.net/features.file-upload

--
Joe

On Aug 15, 2008, at 2:32 PM, ITP Vision Promotion wrote:

> Hello,
> I have a registration page, it is processed to a php script through
> ajax and javascript,
> The script worked until a input type file is involved
>
> var params = "username=" +
> encodeURI(document.getElementById("usernamee").value)+
> "&password=" + encodeURI(document.getElementById("passwordd").value)+
> "&name=" + encodeURI(document.getElementById("name").value)+
> "&pic=" + pik +
> ;
>
> As you may see,the value retrived from the input type file with id
> and name as pic, this will send a usual $_POST['pic'] , while I need
> to Process _$FILE['pic'];
> How can I send the value of a file
> Many Thanks
>
>
> 



[Non-text portions of this message have been removed]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux