1. <?php echo form_open_multipart(&#x27;/jobs/delivery&#x27;, array(&#x27;class&#x27; => &#x27;form-horizontal&#x27;, &#x27;id&#x27; => &#x27;form-doc&#x27;),array(&#x27;job_id&#x27; => &#x27;&#x27;));?>
  2. <iframe id=&#x27;form-doc-iframe&#x27; name=&#x27;form-doc-iframe&#x27; src=""></iframe>
  3.  
  4.  
  5.  
  6. document.getElementById(&#x27;form-doc&#x27;).target = &#x27;form-doc-iframe&#x27;; //&#x27;my_iframe&#x27; is the name of the iframe
  7. document.getElementById(&#x27;form-doc-iframe&#x27;).domain = site;
  8. document.getElementById(&#x27;form-doc&#x27;).submit();