Re: Upload file having Browse button and Submit button on same form
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: Upload file having Browse button and Submit button on same form

From: Mazin07 <mazin07@gmail.com>
Date: Thu Oct 13 2005 - 01:06:17 CEST

Codeman II wrote:
> Hi there,
>
> I am building a form where the user must upload a picture and fill in his
> details.
> Now I have a problem as all of this is on the same form.
>
> How will I be able to have the Browse button to open the "file browse"
> dialog
> and the Submit button to submit the form data.
>
> As I believe you can not use GET but must use POST method for form.
> Is there any means that I can use GET cause I need to get form variables
> from URL as well.
>
>
> Thanks ALOT!
>
>

Put the submit button in the same form as the upload thing.
You can't use GET for uploads. 30 megs of data doesn't work well in a
URI. Why can't you get the variables from POSTDATA?
Received on Tue Oct 18 02:40:55 2005