Auto submitting a form that contains a file field

Auto submitting a form that contains a file field

am 01.04.2008 01:30:27 von laredotornado

Hi,

I'm using php 5. Does anyone have any code or a function that auto
submits a form that contains a single INPUT, of type = file?

Thanks, - Dave

Re: Auto submitting a form that contains a file field

am 01.04.2008 05:15:29 von Jerry Stuckle

laredotornado@zipmail.com wrote:
> Hi,
>
> I'm using php 5. Does anyone have any code or a function that auto
> submits a form that contains a single INPUT, of type = file?
>
> Thanks, - Dave
>

Nope. Can't do it with PHP. PHP is server side, and you need client side.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: Auto submitting a form that contains a file field

am 01.04.2008 06:05:00 von laredotornado

On Mar 31, 10:15=A0pm, Jerry Stuckle wrote:
> laredotorn...@zipmail.com wrote:
> > Hi,
>
> > I'm using php 5. =A0Does anyone have any code or a function that auto
> > submits a form that contains a single INPUT, of type =3D file?
>
> > Thanks, - Dave
>
> Nope. =A0Can't do it with PHP. =A0PHP is server side, and you need client =
side.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================

Actually this would be a server side function that POSTs to a URL and
the enctype would be "multipart/form-data". I've found tons of stuff
that auto-submit forms where you can put the parameters in a query
string, but with inputs that are of file types, you can't do that ...
or can you?

- Dave

Re: Auto submitting a form that contains a file field

am 01.04.2008 07:09:29 von George Maicovschi

Hey Dave,

Do you really need it to be input=file? can't you just load the file,
base64_encode it and send it through an input=text?

Or another method would be making the script with the form in one file
and then using CURL to post that script and posting the file through
CURL. Should work.


On Apr 1, 7:05 am, "laredotorn...@zipmail.com"
wrote:
> On Mar 31, 10:15 pm, Jerry Stuckle wrote:
>
>
>
> > laredotorn...@zipmail.com wrote:
> > > Hi,
>
> > > I'm using php 5. Does anyone have any code or a function that auto
> > > submits a form that contains a single INPUT, of type = file?
>
> > > Thanks, - Dave
>
> > Nope. Can't do it with PHP. PHP is server side, and you need client side.
>
> > --
> > ==================
> > Remove the "x" from my email address
> > Jerry Stuckle
> > JDS Computer Training Corp.
> > jstuck...@attglobal.net
> > ==================
>
> Actually this would be a server side function that POSTs to a URL and
> the enctype would be "multipart/form-data". I've found tons of stuff
> that auto-submit forms where you can put the parameters in a query
> string, but with inputs that are of file types, you can't do that ...
> or can you?
>
> - Dave

Re: Auto submitting a form that contains a file field

am 01.04.2008 08:22:19 von kumarasan

On Apr 1, 4:30 am, "laredotorn...@zipmail.com"
wrote:
> Hi,
>
> I'm using php 5. Does anyone have any code or a function that auto
> submits a form that contains a single INPUT, of type = file?
>
> Thanks, - Dave

hi deve,

please try this code..








Re: Auto submitting a form that contains a file field

am 01.04.2008 12:55:30 von Jerry Stuckle

kumarasan wrote:
> On Apr 1, 4:30 am, "laredotorn...@zipmail.com"
> wrote:
>> Hi,
>>
>> I'm using php 5. Does anyone have any code or a function that auto
>> submits a form that contains a single INPUT, of type = file?
>>
>> Thanks, - Dave
>
> hi deve,
>
> please try this code..
>
>
>
>
>


>
>

>
>
>

Which

1) Has nothing to do with PHP (this is a PHP newsgroup, not a javascript
one)
2) Does not answer his question.

Which is why I tried to refer him to a more appropriate newsgroup - so
he will get a good answer.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: Auto submitting a form that contains a file field

am 01.04.2008 13:05:05 von Jerry Stuckle

laredotornado@zipmail.com wrote:
> On Mar 31, 10:15 pm, Jerry Stuckle wrote:
>> laredotorn...@zipmail.com wrote:
>>> Hi,
>>> I'm using php 5. Does anyone have any code or a function that auto
>>> submits a form that contains a single INPUT, of type = file?
>>> Thanks, - Dave
>> Nope. Can't do it with PHP. PHP is server side, and you need client side.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================
>
> Actually this would be a server side function that POSTs to a URL and
> the enctype would be "multipart/form-data". I've found tons of stuff
> that auto-submit forms where you can put the parameters in a query
> string, but with inputs that are of file types, you can't do that ...
> or can you?
>
> - Dave
>

No, the POST is from the client end. The result of the POST is server end.

Client end is NOT php. Neither is the enctype nor the
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: Auto submitting a form that contains a file field

am 01.04.2008 13:49:11 von George Maicovschi

On Apr 1, 2:05 pm, Jerry Stuckle wrote:
> laredotorn...@zipmail.com wrote:
> > On Mar 31, 10:15 pm, Jerry Stuckle wrote:
> >> laredotorn...@zipmail.com wrote:
> >>> Hi,
> >>> I'm using php 5. Does anyone have any code or a function that auto
> >>> submits a form that contains a single INPUT, of type = file?
> >>> Thanks, - Dave
> >> Nope. Can't do it with PHP. PHP is server side, and you need client side.
>
> >> --
> >> ==================
> >> Remove the "x" from my email address
> >> Jerry Stuckle
> >> JDS Computer Training Corp.
> >> jstuck...@attglobal.net
> >> ==================
>
> > Actually this would be a server side function that POSTs to a URL and
> > the enctype would be "multipart/form-data". I've found tons of stuff
> > that auto-submit forms where you can put the parameters in a query
> > string, but with inputs that are of file types, you can't do that ...
> > or can you?
>
> > - Dave
>
> No, the POST is from the client end. The result of the POST is server end.
>
> Client end is NOT php. Neither is the enctype nor the >
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================

From what he's saying I'd think he tries to make an auto-poster to do
posts in another website's form or a form located in another script,
and that si doable using PHP.

Re: Auto submitting a form that contains a file field

am 01.04.2008 14:51:08 von Jerry Stuckle

George Maicovschi wrote:
> On Apr 1, 2:05 pm, Jerry Stuckle wrote:
>> laredotorn...@zipmail.com wrote:
>>> On Mar 31, 10:15 pm, Jerry Stuckle wrote:
>>>> laredotorn...@zipmail.com wrote:
>>>>> Hi,
>>>>> I'm using php 5. Does anyone have any code or a function that auto
>>>>> submits a form that contains a single INPUT, of type = file?
>>>>> Thanks, - Dave
>>>> Nope. Can't do it with PHP. PHP is server side, and you need client side.
>>>> --
>>>> ==================
>>>> Remove the "x" from my email address
>>>> Jerry Stuckle
>>>> JDS Computer Training Corp.
>>>> jstuck...@attglobal.net
>>>> ==================
>>> Actually this would be a server side function that POSTs to a URL and
>>> the enctype would be "multipart/form-data". I've found tons of stuff
>>> that auto-submit forms where you can put the parameters in a query
>>> string, but with inputs that are of file types, you can't do that ...
>>> or can you?
>>> - Dave
>> No, the POST is from the client end. The result of the POST is server end.
>>
>> Client end is NOT php. Neither is the enctype nor the >>
>
> From what he's saying I'd think he tries to make an auto-poster to do
> posts in another website's form or a form located in another script,
> and that si doable using PHP.
>

No, I read it as he's trying to automatically submit a form from the
browser. But it really isn't clear.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: Auto submitting a form that contains a file field

am 01.04.2008 18:40:39 von Ulf Kadner

Jerry Stuckle wrote:

> No, the POST is from the client end. The result of the POST is server end.

And PHP isnt able to be a client? so whats HTTPClient class from PECL for?

Expand your scope!

> Client end is NOT php. Neither is the enctype nor the > tag.

He quest about sending data client like. Sending a file field works fine.

So long, Ulf

Re: Auto submitting a form that contains a file field

am 01.04.2008 21:15:04 von laredotornado

On Apr 1, 6:49=A0am, George Maicovschi
wrote:
> On Apr 1, 2:05 pm, Jerry Stuckle wrote:
>
>
>
>
>
> > laredotorn...@zipmail.com wrote:
> > > On Mar 31, 10:15 pm, Jerry Stuckle wrote:
> > >> laredotorn...@zipmail.com wrote:
> > >>> Hi,
> > >>> I'm using php 5. =A0Does anyone have any code or a function that aut=
o
> > >>> submits a form that contains a single INPUT, of type =3D file?
> > >>> Thanks, - Dave
> > >> Nope. =A0Can't do it with PHP. =A0PHP is server side, and you need cl=
ient side.
>
> > >> --
> > >> ==================
> > >> Remove the "x" from my email address
> > >> Jerry Stuckle
> > >> JDS Computer Training Corp.
> > >> jstuck...@attglobal.net
> > >> ==================
>
> > > Actually this would be a server side function that POSTs to a URL and
> > > the enctype would be "multipart/form-data". =A0I've found tons of stuf=
f
> > > that auto-submit forms where you can put the parameters in a query
> > > string, but with inputs that are of file types, you can't do that ...
> > > or can you?
>
> > > =A0- Dave
>
> > No, the POST is from the client end. =A0The result of the POST is server=
end.
>
> > Client end is NOT php. =A0Neither is the enctype nor the ile tag.
>
> > --
> > ==================
> > Remove the "x" from my email address
> > Jerry Stuckle
> > JDS Computer Training Corp.
> > jstuck...@attglobal.net
> > ==================
>
> From what he's saying I'd think he tries to make an auto-poster to do
> posts in another website's form or a form located in another script,
> and that si doable using PHP.- Hide quoted text -
>
> - Show quoted text -

Hi, George interpreted my question correctly. George (and anyone
else), regarding your question

> Do you really need it to be input=3Dfile? can't you just load the file, ba=
se64_encode it

I guess it doesn't have to be input=3Dfile. But when you say "load the
file", what do you mean? Thanks, - Dave

Re: Auto submitting a form that contains a file field

am 01.04.2008 21:54:59 von George Maicovschi

On Apr 1, 10:15 pm, "laredotorn...@zipmail.com"
wrote:
> On Apr 1, 6:49 am, George Maicovschi
> wrote:
>
>
>
> > On Apr 1, 2:05 pm, Jerry Stuckle wrote:
>
> > > laredotorn...@zipmail.com wrote:
> > > > On Mar 31, 10:15 pm, Jerry Stuckle wrote:
> > > >> laredotorn...@zipmail.com wrote:
> > > >>> Hi,
> > > >>> I'm using php 5. Does anyone have any code or a function that auto
> > > >>> submits a form that contains a single INPUT, of type = file?
> > > >>> Thanks, - Dave
> > > >> Nope. Can't do it with PHP. PHP is server side, and you need client side.
>
> > > >> --
> > > >> ==================
> > > >> Remove the "x" from my email address
> > > >> Jerry Stuckle
> > > >> JDS Computer Training Corp.
> > > >> jstuck...@attglobal.net
> > > >> ==================
>
> > > > Actually this would be a server side function that POSTs to a URL and
> > > > the enctype would be "multipart/form-data". I've found tons of stuff
> > > > that auto-submit forms where you can put the parameters in a query
> > > > string, but with inputs that are of file types, you can't do that ...
> > > > or can you?
>
> > > > - Dave
>
> > > No, the POST is from the client end. The result of the POST is server end.
>
> > > Client end is NOT php. Neither is the enctype nor the >
> > > --
> > > ==================
> > > Remove the "x" from my email address
> > > Jerry Stuckle
> > > JDS Computer Training Corp.
> > > jstuck...@attglobal.net
> > > ==================
>
> > From what he's saying I'd think he tries to make an auto-poster to do
> > posts in another website's form or a form located in another script,
> > and that si doable using PHP.- Hide quoted text -
>
> > - Show quoted text -
>
> Hi, George interpreted my question correctly. George (and anyone
> else), regarding your question
>
> > Do you really need it to be input=file? can't you just load the file, base64_encode it
>
> I guess it doesn't have to be input=file. But when you say "load the
> file", what do you mean? Thanks, - Dave

A link to the script your are trying to post in would be of much help,
but as I see, you should use either CURL or WGET to post it and use --
post-file in wget or the equivalent in CURL to do the thing.

Hope it helps.

George

Re: Auto submitting a form that contains a file field

am 01.04.2008 22:28:50 von laredotornado

On Apr 1, 2:54=A0pm, George Maicovschi
wrote:
> On Apr 1, 10:15 pm, "laredotorn...@zipmail.com"
>
>
>
>
>
> wrote:
> > On Apr 1, 6:49 am, George Maicovschi
> > wrote:
>
> > > On Apr 1, 2:05 pm, Jerry Stuckle wrote:
>
> > > > laredotorn...@zipmail.com wrote:
> > > > > On Mar 31, 10:15 pm, Jerry Stuckle wrote=
:
> > > > >> laredotorn...@zipmail.com wrote:
> > > > >>> Hi,
> > > > >>> I'm using php 5. =A0Does anyone have any code or a function that=
auto
> > > > >>> submits a form that contains a single INPUT, of type =3D file?
> > > > >>> Thanks, - Dave
> > > > >> Nope. =A0Can't do it with PHP. =A0PHP is server side, and you nee=
d client side.
>
> > > > >> --
> > > > >> ==================
> > > > >> Remove the "x" from my email address
> > > > >> Jerry Stuckle
> > > > >> JDS Computer Training Corp.
> > > > >> jstuck...@attglobal.net
> > > > >> ==================
>
> > > > > Actually this would be a server side function that POSTs to a URL =
and
> > > > > the enctype would be "multipart/form-data". =A0I've found tons of =
stuff
> > > > > that auto-submit forms where you can put the parameters in a query=

> > > > > string, but with inputs that are of file types, you can't do that =
....
> > > > > or can you?
>
> > > > > =A0- Dave
>
> > > > No, the POST is from the client end. =A0The result of the POST is se=
rver end.
>
> > > > Client end is NOT php. =A0Neither is the enctype nor the =3Dfile tag.
>
> > > > --
> > > > ==================
> > > > Remove the "x" from my email address
> > > > Jerry Stuckle
> > > > JDS Computer Training Corp.
> > > > jstuck...@attglobal.net
> > > > ==================
>
> > > From what he's saying I'd think he tries to make an auto-poster to do
> > > posts in another website's form or a form located in another script,
> > > and that si doable using PHP.- Hide quoted text -
>
> > > - Show quoted text -
>
> > Hi, George interpreted my question correctly. =A0George (and anyone
> > else), regarding your question
>
> > > Do you really need it to be input=3Dfile? can't you just load the file=
, base64_encode it
>
> > I guess it doesn't have to be input=3Dfile. =A0But when you say "load th=
e
> > file", what do you mean? =A0Thanks, - Dave
>
> A link to the script your are trying to post in would be of much help,
> but as I see, you should use either CURL or WGET to post it and use --
> post-file in wget or the equivalent in CURL to do the thing.
>
> Hope it helps.
>
> George- Hide quoted text -
>
> - Show quoted text -

Thanks. As I write the script, I will post more. On the server end,
how do I retrieve the file? For example, in the wget command, I can't
see how you specify the file's parameter name. - Dave

Re: Auto submitting a form that contains a file field

am 02.04.2008 03:28:08 von unknown

Post removed (X-No-Archive: yes)

Re: Auto submitting a form that contains a file field

am 02.04.2008 03:32:36 von unknown

Post removed (X-No-Archive: yes)

Re: Auto submitting a form that contains a file field

am 02.04.2008 03:53:07 von Jerry Stuckle

laredotornado@zipmail.com wrote:
> On Apr 1, 2:54 pm, George Maicovschi
> wrote:
>> On Apr 1, 10:15 pm, "laredotorn...@zipmail.com"
>>
>>
>>
>>
>>
>> wrote:
>>> On Apr 1, 6:49 am, George Maicovschi
>>> wrote:
>>>> On Apr 1, 2:05 pm, Jerry Stuckle wrote:
>>>>> laredotorn...@zipmail.com wrote:
>>>>>> On Mar 31, 10:15 pm, Jerry Stuckle wrote:
>>>>>>> laredotorn...@zipmail.com wrote:
>>>>>>>> Hi,
>>>>>>>> I'm using php 5. Does anyone have any code or a function that auto
>>>>>>>> submits a form that contains a single INPUT, of type = file?
>>>>>>>> Thanks, - Dave
>>>>>>> Nope. Can't do it with PHP. PHP is server side, and you need client side.
>>>>>>> --
>>>>>>> ==================
>>>>>>> Remove the "x" from my email address
>>>>>>> Jerry Stuckle
>>>>>>> JDS Computer Training Corp.
>>>>>>> jstuck...@attglobal.net
>>>>>>> ==================
>>>>>> Actually this would be a server side function that POSTs to a URL and
>>>>>> the enctype would be "multipart/form-data". I've found tons of stuff
>>>>>> that auto-submit forms where you can put the parameters in a query
>>>>>> string, but with inputs that are of file types, you can't do that ...
>>>>>> or can you?
>>>>>> - Dave
>>>>> No, the POST is from the client end. The result of the POST is server end.
>>>>> Client end is NOT php. Neither is the enctype nor the >>>>> --
>>>>> ==================
>>>>> Remove the "x" from my email address
>>>>> Jerry Stuckle
>>>>> JDS Computer Training Corp.
>>>>> jstuck...@attglobal.net
>>>>> ==================
>>>> From what he's saying I'd think he tries to make an auto-poster to do
>>>> posts in another website's form or a form located in another script,
>>>> and that si doable using PHP.- Hide quoted text -
>>>> - Show quoted text -
>>> Hi, George interpreted my question correctly. George (and anyone
>>> else), regarding your question
>>>> Do you really need it to be input=file? can't you just load the file, base64_encode it
>>> I guess it doesn't have to be input=file. But when you say "load the
>>> file", what do you mean? Thanks, - Dave
>> A link to the script your are trying to post in would be of much help,
>> but as I see, you should use either CURL or WGET to post it and use --
>> post-file in wget or the equivalent in CURL to do the thing.
>>
>> Hope it helps.
>>
>> George- Hide quoted text -
>>
>> - Show quoted text -
>
> Thanks. As I write the script, I will post more. On the server end,
> how do I retrieve the file? For example, in the wget command, I can't
> see how you specify the file's parameter name. - Dave
>

Don't even try to use wget. Rather, use http and submit the file from
your server to the other server.

Google on File upload cURL.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: Auto submitting a form that contains a file field

am 02.04.2008 03:54:38 von Jerry Stuckle

Ulf Kadner wrote:
> Jerry Stuckle wrote:
>
>> No, the POST is from the client end. The result of the POST is server
>> end.
>
> And PHP isnt able to be a client? so whats HTTPClient class from PECL for?
>
> Expand your scope!
>
>> Client end is NOT php. Neither is the enctype nor the >> type=file tag.
>
> He quest about sending data client like. Sending a file field works fine.
>
> So long, Ulf
>

Only if you have installed PHP on the client system. How many
non-developers do you know have PHP installed? Get real.

In this case, if you look at his later comments, it IS client end he
wants to use PHP.



--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: Auto submitting a form that contains a file field

am 02.04.2008 09:22:12 von George Maicovschi

On Apr 2, 4:53 am, Jerry Stuckle wrote:
> laredotorn...@zipmail.com wrote:
> > On Apr 1, 2:54 pm, George Maicovschi
> > wrote:
> >> On Apr 1, 10:15 pm, "laredotorn...@zipmail.com"
>
> >> wrote:
> >>> On Apr 1, 6:49 am, George Maicovschi
> >>> wrote:
> >>>> On Apr 1, 2:05 pm, Jerry Stuckle wrote:
> >>>>> laredotorn...@zipmail.com wrote:
> >>>>>> On Mar 31, 10:15 pm, Jerry Stuckle wrote:
> >>>>>>> laredotorn...@zipmail.com wrote:
> >>>>>>>> Hi,
> >>>>>>>> I'm using php 5. Does anyone have any code or a function that auto
> >>>>>>>> submits a form that contains a single INPUT, of type = file?
> >>>>>>>> Thanks, - Dave
> >>>>>>> Nope. Can't do it with PHP. PHP is server side, and you need client side.
> >>>>>>> --
> >>>>>>> ==================
> >>>>>>> Remove the "x" from my email address
> >>>>>>> Jerry Stuckle
> >>>>>>> JDS Computer Training Corp.
> >>>>>>> jstuck...@attglobal.net
> >>>>>>> ==================
> >>>>>> Actually this would be a server side function that POSTs to a URL and
> >>>>>> the enctype would be "multipart/form-data". I've found tons of stuff
> >>>>>> that auto-submit forms where you can put the parameters in a query
> >>>>>> string, but with inputs that are of file types, you can't do that ...
> >>>>>> or can you?
> >>>>>> - Dave
> >>>>> No, the POST is from the client end. The result of the POST is server end.
> >>>>> Client end is NOT php. Neither is the enctype nor the > >>>>> --
> >>>>> ==================
> >>>>> Remove the "x" from my email address
> >>>>> Jerry Stuckle
> >>>>> JDS Computer Training Corp.
> >>>>> jstuck...@attglobal.net
> >>>>> ==================
> >>>> From what he's saying I'd think he tries to make an auto-poster to do
> >>>> posts in another website's form or a form located in another script,
> >>>> and that si doable using PHP.- Hide quoted text -
> >>>> - Show quoted text -
> >>> Hi, George interpreted my question correctly. George (and anyone
> >>> else), regarding your question
> >>>> Do you really need it to be input=file? can't you just load the file, base64_encode it
> >>> I guess it doesn't have to be input=file. But when you say "load the
> >>> file", what do you mean? Thanks, - Dave
> >> A link to the script your are trying to post in would be of much help,
> >> but as I see, you should use either CURL or WGET to post it and use --
> >> post-file in wget or the equivalent in CURL to do the thing.
>
> >> Hope it helps.
>
> >> George- Hide quoted text -
>
> >> - Show quoted text -
>
> > Thanks. As I write the script, I will post more. On the server end,
> > how do I retrieve the file? For example, in the wget command, I can't
> > see how you specify the file's parameter name. - Dave
>
> Don't even try to use wget. Rather, use http and submit the file from
> your server to the other server.
>
> Google on File upload cURL.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================

WGET is probably a much better piece of code than CURL is and of
course a much more powerful one, but everybody can use whatever he/she
wants to.

CURL has the advantage of being integrated right into PHP and that's
why many of us prefer it.

Dave, take a look at GNU's documentation for WGET, it will explain
everything you need to know about what you have to do in order to
achieve your purpose.

Regarde,
George Maicovschi.

Re: Auto submitting a form that contains a file field

am 03.04.2008 01:32:57 von laredotornado

On Apr 2, 2:22=A0am, George Maicovschi
wrote:
> On Apr 2, 4:53 am, Jerry Stuckle wrote:
>
>
>
>
>
> > laredotorn...@zipmail.com wrote:
> > > On Apr 1, 2:54 pm, George Maicovschi
> > > wrote:
> > >> On Apr 1, 10:15 pm, "laredotorn...@zipmail.com"
>
> > >> wrote:
> > >>> On Apr 1, 6:49 am, George Maicovschi
> > >>> wrote:
> > >>>> On Apr 1, 2:05 pm, Jerry Stuckle wrote:
> > >>>>> laredotorn...@zipmail.com wrote:
> > >>>>>> On Mar 31, 10:15 pm, Jerry Stuckle wrot=
e:
> > >>>>>>> laredotorn...@zipmail.com wrote:
> > >>>>>>>> Hi,
> > >>>>>>>> I'm using php 5. =A0Does anyone have any code or a function tha=
t auto
> > >>>>>>>> submits a form that contains a single INPUT, of type =3D file?
> > >>>>>>>> Thanks, - Dave
> > >>>>>>> Nope. =A0Can't do it with PHP. =A0PHP is server side, and you ne=
ed client side.
> > >>>>>>> --
> > >>>>>>> ==================
> > >>>>>>> Remove the "x" from my email address
> > >>>>>>> Jerry Stuckle
> > >>>>>>> JDS Computer Training Corp.
> > >>>>>>> jstuck...@attglobal.net
> > >>>>>>> ==================
> > >>>>>> Actually this would be a server side function that POSTs to a URL=
and
> > >>>>>> the enctype would be "multipart/form-data". =A0I've found tons of=
stuff
> > >>>>>> that auto-submit forms where you can put the parameters in a quer=
y
> > >>>>>> string, but with inputs that are of file types, you can't do that=
...
> > >>>>>> or can you?
> > >>>>>> =A0- Dave
> > >>>>> No, the POST is from the client end. =A0The result of the POST is =
server end.
> > >>>>> Client end is NOT php. =A0Neither is the enctype nor the pe=3Dfile tag.
> > >>>>> --
> > >>>>> ==================
> > >>>>> Remove the "x" from my email address
> > >>>>> Jerry Stuckle
> > >>>>> JDS Computer Training Corp.
> > >>>>> jstuck...@attglobal.net
> > >>>>> ==================
> > >>>> From what he's saying I'd think he tries to make an auto-poster to =
do
> > >>>> posts in another website's form or a form located in another script=
,
> > >>>> and that si doable using PHP.- Hide quoted text -
> > >>>> - Show quoted text -
> > >>> Hi, George interpreted my question correctly. =A0George (and anyone
> > >>> else), regarding your question
> > >>>> Do you really need it to be input=3Dfile? can't you just load the f=
ile, base64_encode it
> > >>> I guess it doesn't have to be input=3Dfile. =A0But when you say "loa=
d the
> > >>> file", what do you mean? =A0Thanks, - Dave
> > >> A link to the script your are trying to post in would be of much help=
,
> > >> but as I see, you should use either CURL or WGET to post it and use -=
-
> > >> post-file in wget or the equivalent in CURL to do the thing.
>
> > >> Hope it helps.
>
> > >> George- Hide quoted text -
>
> > >> - Show quoted text -
>
> > > Thanks. =A0As I write the script, I will post more. =A0On the server e=
nd,
> > > how do I retrieve the file? =A0For example, in the wget command, I can=
't
> > > see how you specify the file's parameter name. - Dave
>
> > Don't even try to use wget. =A0Rather, use http and submit the file from=

> > your server to the other server.
>
> > Google on File upload cURL.
>
> > --
> > ==================
> > Remove the "x" from my email address
> > Jerry Stuckle
> > JDS Computer Training Corp.
> > jstuck...@attglobal.net
> > ==================
>
> WGET is probably a much better piece of code than CURL is and of
> course a much more powerful one, but everybody can use whatever he/she
> wants to.
>
> CURL has the advantage of being integrated right into PHP and that's
> why many of us prefer it.
>
> Dave, take a look at GNU's documentation for WGET, it will explain
> everything you need to know about what you have to do in order to
> achieve your purpose.
>
> Regarde,
> George Maicovschi.- Hide quoted text -
>
> - Show quoted text -

Hi George, I'm looking at the GNU docs, as you suggested --
http://www.gnu.org/software/wget/manual/html_node/HTTP-Optio ns.html,
but I'm not seeing what the parameter name is of the file passed to
the server. If you tell me this one time, I guarantee I won't post
any more today!

Thanks, - Dave