Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Font and format retention after a varible parse


Recommended Posts

I'm trying to solve a problem with font formatting retention. The example is from the contact us page, when the user types in their comment the fonts are taken from the stylesheet. When the http_post_vars takes that info typed into the form, it for some reason converts it back to times roman which isn't the font that is used throughout my site (Verdana).


How do I maintain the font integrity? The information is in question is from the $enquiry variable which gets passed back to the html email which the customer sees is different from the font used within the rest of the formatted email from the script.


Ideas on what the fix is?


here is the code


if (isset($HTTP_GET_VARS['action']) && ($HTTP_GET_VARS['action'] == 'send')) {
$name = tep_db_prepare_input($HTTP_POST_VARS['name']);
$email_address = tep_db_prepare_input($HTTP_POST_VARS['email']);
$enquiry = tep_db_prepare_input($HTTP_POST_VARS['enquiry']);

	if (tep_validate_email($email_address)) {
  tep_mail(STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS, EMAIL_SUBJECT, $enquiry, $name, $email_address);


I've tried to paste this"


<link rel="stylesheet" type="text/css" href="stylesheet.css">


before it and within it, but I get parse errors because it doesn't seem to belong there.


This is driving me nuts





Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...