Hi everyone,
Well my problem really is that I have an ajax call that updates the page and sends an email.. In IE for whatever reason (i'm used to just not questioning it) it doesn't like it and the email never gets sent... All other browsers it works fine. So I have done a javascript browser detection and placed my ajax call around an "if not IE then do this ajax stuff..."
The problem is that the send mail php code is in an external file being called by a form action, so if it's successful it just kind of adds the content to the current page "email has been sent"-- where if javascript is turned off OR now the user is on IE, the result is that the browser redirects to the php mail file and we see a blank white page with "email has been sent".
So I was thinking, a solution to this problem would be to include all the style sheet/menu bar/footer page stuff in the php mail file, but surround it by if ($browser=="Internet Explorer") as well as <no script> tags..
But, I don't know how to set php's $browser to javascript's var browser (where the browser detection lives)...
Any advice? Thank you.
-patrick