Using insert record function with a 'multipart/form-data' form
Posted on 2003-03-07
I have a form which uses file upload function and so is multipart/form-data. The form also uses record insert function to a database. Also I have included a small Java Script form validator.
When I run this I expected the form data to be saved in a database record and the file upload data to be passed to the following page where the file acceptor is.
What does happen when I submit the form is the form resets, but there is no error messages and no new record is saved in the database.
The form tag is:
<form name="form1" enctype="multipart/form-data" action="<%=MM_editAction%>" method="POST" onSubmit="return Form_Validator(this)">
Where 'MM_editAction' is the Dreamweaver insert record function. This action has the RedirectURL set to the file acceptor page.
If you need any more of the code please let me know.