I want to send HTML code in my web...

User 310234 Photo


Registered User
7 posts

I did an honest search for this topic on this board, and even on the almighty Google, figuring someone must have asked this before, so I apologize for any redundancy.

I'm hoping to launch my site in January, so I'm debugging like crazy, but my coding skills are self-taught through reverse-engineering, but if this is a javascript thing, I haven't begun to understand how to code it (html and css only).

Anyway, I have successfully created a form that sends the contents to me the way I want them. It also sends a "thank you" e-mail to the form user. However, I would like that message to contain links to my social media pages and my e-mail business card. The text goes through fine, but the html code shows up as text, as well.

I'm hoping it's just an error in the syntax (like I'm missing an apostrophe or something) and not a limitation of the code in the php file.

I don't want to post the entire code here, so I've truncated the html using [brackets], but every other character is the same:

===========

{
$form_user_msg = parseMessage('Thank you for e-mailing [my company]! We will be in touch with you soon! Please take a moment to [insert html links to social media pages] !

[Below begins the code for my e-mail business card]

<html lang="en">
<body><br/> [REST OF OF HTML CODING HERE] </style></body></html>', $preferences);
$form_user_subject = parseMessage(CC_FB_AUTO_REPLY_SUBJECT, $preferences);

=========================================

I pretty much have to figure this out, eliminate dead links and create and FAQ page, so the site is almost complete. This is the monster I can't figure out without help from the masters.

Thanks,
Mike
WHOOMP! Dayt is! I think...
User 2484360 Photo


Registered User
3,293 posts

Would need to see the entire thing to be sure, but with this:

<html lang="en">
<body><br/> [REST OF OF HTML CODING HERE] </style></body></html>', $preferences);
$form_user_subject = parseMessage(CC_FB_AUTO_REPLY_SUBJECT, $preferences);


You are adding a second HTML and body tag. Look through it and make sure there is not one at the very top of the code.
User 310234 Photo


Registered User
7 posts

I might be inclined to agree and smack my forehead right now, and it might be a factor anyway. However, the hrefs in the links to the social media sites ABOVE that second HTML and body tag also appear as all text. [revealing a bit more of the first part of the code without plugging my sites]

$form_user_msg = parseMessage('Thank you for e-mailing Voices of Mike! We will be in touch with you soon! Please take a moment to <a href="https:[FB link]" target="_blank">Like our Facebook Page</a> and to <a href="https:[Twitter link]" target="_blank">Follow us on Twitter</a>!

Then I start with the second tag. If the part above worked, I'd have more confidence in fixing my problem with the removal of the second tags.

Also, it shows up as text in both my online Yahoo! mail and my 'puter-based WindowsLive mailbox. I thought it might just be a problem with Yahoo.

Thanks for taking a look.
WHOOMP! Dayt is! I think...

Have something to add? We’d love to hear it!
You must have an account to participate. Please Sign In Here, then join the conversation.