Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End IE-Stylesheet Conditional Comment in PHP document Re: IE-Stylesheet Conditional Comment in PHP document

#64789
cc99
Member

Thanks for your reply :) I actually have it just like you suggest in my html pages. However, when a user clicks on the ‘Send’ button on the email form within the Contact Us page, it activates a PHP page that will generate the email with all the responses from the form and sends it to me and then displays a page to the user telling them the message was sent successfully. In the html pages, my conditional comment work perfectly and adds in the IE style sheet where required. However, the same does not work in the php file, so the page that is returned when successful is all over the place if viewed in an IE browser. So my question is how do I achieve the same thing here, i.e. ensure that a user with an IE browser will also get the right styles applied in the $theResults = <<<EOD part of the php file?

Code in contact.html

Code:

Contact Us

If you have any questions, contact XYZ by completing the form below.

Your Email Address

Name

Phone Number

Your Enquiry


Code in contactformprocess.php

Code:


Email: $emailField
Name: $nameField
Phone Number: $phoneField

Comments: $commentsField

EOD;

$headers = “From: $emailrn”;
$headers .= “Content-type: text/htmlrn”;
$success = mail($webMaster, $emailSubject, $body, $headers);

/* Results rendered as HTML */

$theResults = <<




……


…..

EOD;
echo “$theResults”;

?>