processing form types

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

Greetings one and all

I have a page which contains several forms. One/some of these forms is a=

file upload form which needs the attribute: enctype=3D"multipart/form-da=

Is it possible to process all forms using the same script?  Normally I'd=

simply test for the value of the 'submit' button but this is not possibl=
e  =

in this situation.

FWIW: This is classic ASP/vbScript but I can probably do an inline  =

translate from other environments/languages if there's a solution.

Thanks for reading.
-- =

William Tasso

Re: processing form types

William Tasso wrote:

Quoted text here. Click to load it

Not sure, if I understand the question correctly...

You could add a hidden field to each form, so the script knows which form it
has to handle.
You may also add different query strings to the FORMs action (if all forms
use POST).

Most environments should be able to handle the two different enctypes
transparently, so you probably don't have to worry about this.


Benjamin Niemann
Email: pink at odahoda dot de
WWW: /

Re: processing form types

Quoted text here. Click to load it

To add:
IMO this should be painless so long as each form element is named

Karl Groves

Re: processing form types

Fleeing from the madness of the 1&1 Internet AG jungle
and said:

Quoted text here. Click to load it

Brilliantly obvious - thanks.  The querystring did it for me.

dunno why I didn't think of that :)
-- =

William Tasso

Site Timeline