Hi,
I have a large registration form - within the form i'd like to allow the user to upload images and pdf's, i know how to do an upload however, i'd like the user to be able to make this upload before they submit the form, however when i use something like this
<form enctype="multipart/form-data" action="upload.php" method="POST">
<!-- MAX_FILE_SIZE must precede the file input field -->
<input type="hidden" name="MAX_FILE_SIZE" value="30000" />
<!-- Name of input element determines name in $_FILES array -->
Send this file: <input name="userfile" type="file" />
<input type="submit" value="Send File" />
</form>
within my form, as soon as you hit the "Send File" it try's to submit the form that it is nested inside of......any ideas how i can combat this issue?
thanks in advance
Greg