html - How Do I Submit My Form in Shadowbox? -


i'm trying use shadowbox upload image files. shadowbox opens fine form in browser, i'm unable submit it. server says unable complete request. here shadowbox code:

<script type="text/javascript">              shadowbox.init({              });              function mytest() {                  shadowbox.open({                     content:    "http://mydomain.com/cgi-bin/photo.cgi,                     player:     "iframe",                     title:      "image upload",                     height:     200,                     width:      500                 });              };          </script> 

i call shadowbox using button:

<tr><td colspan="7"><input type="button" value="upload photo" onclick="mytest();"></td></tr> 

my form code here:

<form enctype="multipart/form-data" action="http://mydomain.com/cgi-bin/photo.cgi?function=photo_upload_process" method="get" target="_parent">      <table border="0" cellpadding="0" cellspacing="0">          <tr><td colspan="4" style="height: 50px;"></td></tr>          <tr>             <td style="width: 25px;"></td>             <td style="width: 175px;"><label>load image:</label></td>             <td style="width: 275px;"><input class="photo_selector" type="file" name="photo" size="20"></td>             <td style="width: 25px;"></td>         </tr>           <tr><td colspan="4" style="height: 20px;"></td></tr>          <tr>             <td style="width: 25px;"></td>             <td style="width: 175px;"><label>press button upload:</td>             <td style="width: 275px;"><input type="submit" value="upload" name="upload"></td>             <td style="width: 25px;"></td>         </tr>          <tr><td colspan="4" style="height: 20px;"></td></tr>      </table>      <input type="hidden" name="function" value="upload_image">  </form> 

can me fix this? thanks!

the problem trying upload file using "get" method form.

method="get" try send form data query-string parameters. not work uploading file.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -