0

I'm having trouble getting this to work in IE9:

edit: Sorry, I forgot to mention that $variable was a $_GET from a drop down menu selection.

I am currently offline,

<a href="#"
    onclick="window.open('https://domain.com/contact-form?chatq=<?php echo $variable;?>@domain.com','resizable=1,width=320,height=200'); return false;">
    <br />click to send an email.
</a>

It works fine in firefox and chrome. I'm not exactly sure what the problem is with IE. Any help would be appreciated.

Thanks!

8
  • 2
    Is that <?php echo $variable;?> in the actual output page? Jul 30, 2013 at 14:37
  • Does the console have anything to say?
    – Halter
    Jul 30, 2013 at 14:39
  • Is there an "invalid argument" error in the console? Jul 30, 2013 at 14:44
  • have you tried with some simple param value for chatq or with no param at all
    – user2587132
    Jul 30, 2013 at 14:51
  • @leftclickben: yes it is, $variable is a $_GET from a dropdown selection and it'll open up to that person's contact form. Jul 30, 2013 at 15:14

1 Answer 1

1

Tested on IE9:

<?php

$variable = 3;

?>

<a 
onclick="window.open('https://domain.com/contact-form?chatq=<?php echo $variable;?   >@domain.com','resizable=1,width=320,height=200'); return false;">
<br />click to send an email.

</a>

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.