The problem is the parenthesis:
$url = $url[‘path’] . (empty($url[‘query’]) ? ” : ‘?’ . $url[‘query’]) . ‘#’ . $unit_tag;
to
$url = $url[‘path’] . (empty($url[‘query’])) ? ” : ‘?’ . $url[‘query’] . ‘#’ . $unit_tag;
PROBLEM – CONTACT FORM 7 DOES NOT WORK IN Internet Explorer
I had the same problem. Pressing ‘send’ on IE7 resulted in a spinning image.
Here is how I fixed it:
change
$url = $url['path'] . (empty($url['query']) ? '' : '?' . $url['query']) . '#' . $unit_tag;
to
$url = $url['path'] . (empty($url['query'])) ? '' : '?' . $url['query'] . '#' . $unit_tag;
They look the same, but pay attention to the parenthesis…