Jqueyr upload inside a form
Hi Jake;
I have been looking for a solution for sometime but no luck.
I have a form that submits data and INSERTs INTO the database. Somewhere in the middle of this form there is another form that uploads photo with Ajax like this: Ajax File Upload.
It is not legal to have nested forms. I end up with something like this:
- <form action = "/insert" method = "post">
- <input type = "text" name = "name">
- <form action = "upload_photo/" method = "post" multipart>
- <input type = "FILES" name = "picture">
- <input type = "submit" value = "Upload Picture">
- </form>
- <input type = "submit" value = "Insert data">
- </form>
How can I achieve this so the form inside uploads the photo without submitting the whole form?
Thanks Jak