Jump to content

Override Form Submit


imperium2335

Recommended Posts

Hi,

 

I am trying to create a file uploader by following an online tutorial about AJAX file uploading.

 

Due to the nature of my system, I need to override the the form submit function.

 

That is, instead of submit the form by pressing the typical form submit button, I want to submit the form using my function (which is a button in a jquery ui dialog box).

 

How can I do this? ( I have attached a screenshot)

 

Here is my form for the file upload part in the dialog:

 

<form id="imageList" method="post" enctype="application/x-www-form-urlencoded" target="hiddenUpload">
            <input name="firstFile" type="file" />
            <iframe id="hiddenUpload" name="hiddenUpload" onload="" style="width:0px;height:0px;border:none;"></iframe>
            </form>

post-79329-13482403393126_thumb.jpg

Link to comment
https://forums.phpfreaks.com/topic/260350-override-form-submit/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.