Click to See Complete Forum and Search --> : Need to send ENCTYPE by button click


sindhu_dixit
08-05-2008, 05:23 PM
I have a form(f1) where I have many buttons going to different asp pages.

I am using this code line for every button ,just changing the asp page in all buttons.

<input name="submitvalues" type="submit" value="Submit Info"; onclick ="f1.action='productinfo.asp?req_no=<%=objRS("req_no")%>&Username=<%=Username %>'; return true;"/>

Now I have to upload an image in the form and need to send ENCTYPE info also.

I tried doing this:

<input name="Submit" type="submit" value="Upload" onclick ="f1.action=' enctype='multipart/form-data'; formresp.asp?req_no=<%=objRS("req_no")%>&Username=<%=Username %>'; return true;"/>
I am getting this error:

SoftArtisans.FileUp.1 error '80020009'

Invalid or corrupt MIME headers. Please check the referring form's ENCTYPE

/RMA/formresp.asp, line 14


Please suggest the right way to send ENCTYPE on button click.