Go Back   Forum Care Forums > Development Reference Area > Webmaster Topics

Reply
 
LinkBack Thread Tools Display Modes
Re: processing form types
Old
  (#1)
William Tasso
Guest
 
Posts: n/a
Default Re: processing form types - 05-14-2007, 01:12 AM

Fleeing from the madness of the 1&1 Internet AG jungle
Benjamin Niemann <EMAIL REMOVED> stumbled into news:alt.www.webmaster
and said:

> William T***o wrote:
>
>> 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="multipart/form-data"
>>
>> 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
>> possible
>> in this situation.
>>
>> FWIW: This is cl***ic ASP/vbScript but I can probably do an inline
>> translate from other environments/languages if there's a solution.

>
> 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.


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

dunno why I didn't think of that
--
William T***o

http://williamt***o.com/words/what-is-usenet.asp
   
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





Contact Us - Forum Care Forums - Archive - Top