Link to home
Start Free TrialLog in
Avatar of cer_developer
cer_developer

asked on

Using insert record function with a 'multipart/form-data' form

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.
ASKER CERTIFIED SOLUTION
Avatar of sybe
sybe

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial