J
Jamie
Is it possible to submit a form, from Javascript using the post
method? From what I've read it is possible. And for some reason, when
I submit the form from Javascript it insists on using the get method.
Here's the HTML:
<form ENCTYPE="multipart/form-data" NAME="upload_form" METHOD=POST
ACTION="processor?put+58">
<input type="file" name="userfile" size="30">
<input type="button" OnClick="Upload()" NAME="op-upload" value="Upload
File">
</form>
Now the Javascript is simply:
function Upload() {
document.upload_form.submit();
}
and I used to have an alert in there annunciate upload_form.method,
which is post. For some reason my cgi always receives this as get. So
far I've been able to test it in Mozilla 5 for Linux, and IE6 for XP.
Now, if I replace the above submit button, w/a real submit button,
like this:
<input type="submit" NAME="op-upload" value="Upload File">
thereby elimanating the use of Javascript altogether, it sends as
post, like it should.
method? From what I've read it is possible. And for some reason, when
I submit the form from Javascript it insists on using the get method.
Here's the HTML:
<form ENCTYPE="multipart/form-data" NAME="upload_form" METHOD=POST
ACTION="processor?put+58">
<input type="file" name="userfile" size="30">
<input type="button" OnClick="Upload()" NAME="op-upload" value="Upload
File">
</form>
Now the Javascript is simply:
function Upload() {
document.upload_form.submit();
}
and I used to have an alert in there annunciate upload_form.method,
which is post. For some reason my cgi always receives this as get. So
far I've been able to test it in Mozilla 5 for Linux, and IE6 for XP.
Now, if I replace the above submit button, w/a real submit button,
like this:
<input type="submit" NAME="op-upload" value="Upload File">
thereby elimanating the use of Javascript altogether, it sends as
post, like it should.