Hi,
To submit text and file(say, .gif) in a form, we 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>
In the next page, upload.asp, we can get the text and file, both in binary format. We then need to convert the binary text, one byte by one byte, back to English text.
I want to know a good method to get the text in English without the around way: English-binary-English, while get the file in binary format by the same form or by one submit button. Any idea?
To submit text and file(say, .gif) in a form, we 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>
In the next page, upload.asp, we can get the text and file, both in binary format. We then need to convert the binary text, one byte by one byte, back to English text.
I want to know a good method to get the text in English without the around way: English-binary-English, while get the file in binary format by the same form or by one submit button. Any idea?