Note that there are some explanatory texts on larger screens.

plurals
  1. POJavascript form not posting to IE 9
    primarykey
    data
    text
    <p>I've got a very simple Javascript form that posts to a PHP page. This page is launching from a CRM system and the page itself can only be an HTML page, so I can't use PHP for the form. The form posts the user id (which is generated by the CRM system) over to a PHP page and then does a load of stuff based on the UserID.</p> <p>The problem, however, is that some users now have IE9 and it doesn't seem to work with that! IE 8 is absolutely fine, but IE9 just doesn't seem to post the userid.</p> <p>The form within the CRM system is as follows:</p> <pre><code>&lt;form action="http://intranet-srv02/reports/contact.php" method="post" onsubmit="target_popup(this)"&gt; &lt;input name="userid" type="hidden" value="[userid]" /&gt; &lt;input type="submit" value="Reports" /&gt; &lt;/form&gt; &lt;script language="JavaScript1.2"&gt; function target_popup(form) { window.open('', 'formpopup', 'width=1100,height=750,resizeable,scrollbars'); form.target = 'formpopup'; } &lt;/script&gt; </code></pre> <p>And when, on the contact.php page put </p> <pre><code>&lt;?php $userid = $_POST['userid']; echo $userid; ?&gt; </code></pre> <p>Nothing echos on IE9 (but on IE8 and others it does)</p> <p>Any help much appreciated!</p> <p>EDIT: I've updated the deprecated language attribute, but still having the same issue. The form now reads:</p> <pre><code>&lt;form action="http://intranet-srv02/reports/contact.php" method="post" onsubmit="target_popup(this)"&gt; &lt;input name="userid" type="hidden" value="[userid]" /&gt; &lt;input type="submit" value="Reports" /&gt; &lt;/form&gt; &lt;script type="text/javascript"&gt; function target_popup(form) { window.open('', 'formpopup', 'width=1100,height=750,resizeable,scrollbars'); form.target = 'formpopup'; } &lt;/script&gt; </code></pre> <p>Any other ideas?!</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload