I use JavaScript as the server side language and ive found a script a that will upload files and it works perfectly when it’s run on its demo page(that the zip comes with), but when I modified the script to fit my page it doesn’t work.
I know why the script doesn’t work, it’s because it uses this code
var form = Server.CreateObject("MyRequest.Form");
form.Init();
ive already got a form on the same page which im trying to post the data to that I can’t remove. The other form on the page is part of the user login which is in the side navigation bar on every page. When I try and run the page I get this error
Error Type:
Form.Init() (0x80040200)
Input type was not expected
Im almost positive that the reason for the error is because when it does the form.Init it gets fields its not expecting which are the user name and password field.
Is there anyway I can change this line
var form = Server.CreateObject("MyRequest.Form");
so it only makes an object out of the form I want it to ? ive tried a few things but haven’t had any luck.
PLEASE help me someone