How to change content type or enctype?

I have an upload that takes place in one form; enctype: file-data.  After this upload, a result set is listed on the page w/ an option to remove results.  My "remove" results uses a different form than the upload and also requires a different enctype, normal.  How do I get my remove option to work after I've uploaded an item?
sl1ngerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

sl1ngerAuthor Commented:
form name="frmMain" enctype="multipart/file-data"
form name="frmRemove" enctype="application/x-www-form-urlencoded"

The page is set to multipart after the upload and so, I can't submit values like I normally would for frmRemove...
0
mk_bCommented:
you could check to see if the form has been submitted and then do and it else to display certian content?

<% If Request.Form("uploader") = "yes" Then %>
<form name="frmRemove" enctype="application/x-www-form-urlencoded">
<% Else %>
<form name="frmMain" enctype="multipart/file-data">
<input type="hidden" name="uploader" value="yes">
<% End If %>


../mk
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
sl1ngerAuthor Commented:
Is there a way to just change it on the submit?
0
Cloud Class® Course: Microsoft Windows 7 Basic

This introductory course to Windows 7 environment will teach you about working with the Windows operating system. You will learn about basic functions including start menu; the desktop; managing files, folders, and libraries.

sl1ngerAuthor Commented:
Now, I'm thinking it may be better for one form that changes enctypes depending on the submit button pushed.  Since, I would now I have two different actions.  ok.. so, how would I write one form w/ 2 submit.

<form name=frmOne enctype=if submitOne then "file-data" else "www">
<input type=submit name="submitOne" value="upload">
<input type=submit name="submitTwo" value="remove">


How would I write this?  Do you think it'll work?

0
mk_bCommented:
i would still recomend what i have above???
0
sl1ngerAuthor Commented:
you may be kind of right...  I do know that Request.Form("whatever") will not work becuase of the file-data encytpe.  I may try objFileUp.Form("whatever") = "yes"
0
sl1ngerAuthor Commented:
mk b - also I need to keep the upload form on the same page, so the user can have the option to upload or remove at anytime...
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.