Hi,
This is quite difficult for me....
Sometimes, my users need to upload both English and .gif. I know I can do something like:
<form method="post" enctype="multipart/form-data" action="upload.asp">
text: <input type="text" name="text"><br>
file: <input type="file" name="file"><br>
<input type="submit">
</form>
and get the English and .gif, both in binary format, in page upload.asp. Then convert the binary string back to English.
Thinking the way, English - binary string - English, may waste time, I want I can submit English and .gif separately but by one button click.
Perhaps,
1. two forms + one button, or
2. dynamically change my form's 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">
Any idea?
Thank you in advance.
This is quite difficult for me....
Sometimes, my users need to upload both English and .gif. I know I can do something like:
<form method="post" enctype="multipart/form-data" action="upload.asp">
text: <input type="text" name="text"><br>
file: <input type="file" name="file"><br>
<input type="submit">
</form>
and get the English and .gif, both in binary format, in page upload.asp. Then convert the binary string back to English.
Thinking the way, English - binary string - English, may waste time, I want I can submit English and .gif separately but by one button click.
Perhaps,
1. two forms + one button, or
2. dynamically change my form's 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">
Any idea?
Thank you in advance.