Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

fmake my form change its tag

Status
Not open for further replies.

jslmvl

Vendor
Jan 26, 2008
268
GB
Hi,

Can I make my form change its tag:
If the user not upload a .gif, my form will use
<form method="post" action="upload.asp">
while when the user upload a .gif, my form will become
<form method="post" enctype="multipart/form-data" action="upload.asp">

Thank you in advance.
 
Hi

Let us stay on the HTML side abit.

Why to change it ? Why not simply deliver your form with [tt]enctype="multipart/form-data"[/tt] ? Who cares if the visitor will or will not upload a GIF ?

Feherke.
 
Thank you for above two experts' help.

If use enctype="multipart/form-data", the content in text input box will be get in binary format and need to change back to text string! For a big text input, it may time!
 
In ASP, we get the content coms from enctype="multipart/form-data" in a whole, hence both text string and .gif in binary format.
Do you believe "English - binary string - English" wont waiste time?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top