JoeB Posted May 26, 2010 Posted May 26, 2010 I am working on a contribution that sends out a href link in an email. The code is this.. $verification_mail = tep_href_link(FILENAME_ACCOUNT_ACTIVATE, 'activation_id=' . $activation_id .'&submit=true&activation_code=' . $activation_code, 'SSL'); $verification_link = '<a href="' . $verification_mail . '">' . $verification_mail . '</a>' ."\n\n"; $email_text .= EMAIL_WELCOME . EMAIL_TEXT . TEXT_ACTIVATION_CODE . $activation_code . "\n\n" . EMAIL_TEXT_ACTIVATION . $verification_link . EMAIL_CONTACT . EMAIL_WARNING; tep_mail($name, $email_address, EMAIL_SUBJECT, $email_text, STORE_OWNER, STORE_OWNER_EMAIL_ADDRESS); tep_redirect($verification_href); Every time the link comes in my email the 2 "&" in the section of code "&submit=true&activation_code=" comes out looking like "&submit=true&activation_code=". If I take the amp; out by hand and then click on my link everything works. If it is left in it does not work. How would you change the above code to get rid of the amp;? Or is there a way to do a replace just like a perl routine that finds amp; and replaces it with "" nothing. HELP!!! Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.