Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8978037
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T19:30:47+00:00 2026-06-15T19:30:47+00:00

I have a contact form on my joomla website – yet for some reason

  • 0

I have a contact form on my joomla website – yet for some reason all of a sudden the emails are starting to come through with things like %22, %40, %0A instead of the symbols?

I’ve tried using htmlspecialchars_decode, and a few other options but can’t seem to get rid of them other than using str_replace, but obviously that won’t get rid of all of the characters. Can anyone help me out? I’m not sure why it’s changed all of a sudden.

Here’s my contact form:

<form name="contact" id="contact">
  <div id="contactForm">
    <div class="information">
      <div class="__left">Name: *</div>
      <div class="__right"><input type="text" name="name" id="name" class="inputbox required" /></div>
    <div class="clear"></div>
    </div>
    <div class="information">
      <div class="__left">Email: *</div>
      <div class="__right"><input type="text" name="email" id="email" class="inputbox required email" /></div>
    <div class="clear"></div>
    </div>
    <div class="information">
      <div class="__left">Phone: *<br /><em>(Please include area code - XX XXXX XXXX)</em></div>
      <div class="__right"><input type="text" name="phone" id="phone" class="inputbox required phone" /></div>
    <div class="clear"></div>
    </div>
    <div class="information">
      <div class="__left">Message: *</div>
      <div class="__right"><textarea name="message" id="message" rows="10" class="inputbox required"></textarea></div>
    <div class="clear"></div>
    </div>
    <div class="__right"><input type="submit" name="submit" id="submit" value="Submit" class="button" /></div>
    <div class="clear"></div>
  </div>
</form>

and here’s the php:

$name       = htmlspecialchars_decode(JRequest::getVar('e_name'));
        $email      = htmlspecialchars_decode(str_replace('%40','@',JRequest::getVar('e_email')));
        $phone      = htmlspecialchars_decode(JRequest::getVar('e_phone'));
        $body       = htmlspecialchars_decode(str_replace('%0A','<br />',JRequest::getVar('e_message')));


        //send an email             
        $emailto        = $emailto;
        $emailfrom      = $email;
        $emailfromname  = $name;
        $subject        = $subject;

        # prepare email body text
        $message = '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
        <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>'. $subject .'</title>
        </head>
        <body>
        <p>'. $body .'</p>
        <hr />
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="300" align="left" valign="top">Name:</td>
            <td align="left" valign="top">'. $name .'</td>
          </tr>
          <tr>
            <td align="left" valign="top">&nbsp;</td>
            <td align="left" valign="top">&nbsp;</td>
          </tr>
          <tr>
            <td align="left" valign="top">Email:</td>
            <td align="left" valign="top">'. $email .'</td>
          </tr>
          <tr>
            <td align="left" valign="top">&nbsp;</td>
            <td align="left" valign="top">&nbsp;</td>
          </tr>
          <tr>
            <td align="left" valign="top">Phone:</td>
            <td align="left" valign="top">'. $phone .'</td>
          </tr>
        </table>
        </body>
        </html>';

        // send email
        if (JUtility::sendMail($emailfrom, $emailfromname, $emailto, $subject, $message, 1, $cc, $bcc, $attachment, $replyto, $replytoname)) {
            $response[] = 1;        
        } else {
            $response[] = 0;
        };
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-15T19:30:49+00:00Added an answer on June 15, 2026 at 7:30 pm

    Use urlencode or urldecode

    Cheers 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a contact form on my website so users can send me an
I have a contact form made with php on my website. The problem is
I have website based on Umbraco 5. I have installed contact form plugin (http://cultivjupitercontact.codeplex.com/).
I have a working contact form in Joomla however when the user submits the
I have a contact form on my website, which actually works :D The problem
I have a contact form on my website, and everything works like a charm.
Overview I have a Joomal 2.5 website with AiContactSafe contact form installed. Standard AiContactSafe
I have a contact form that checks if some field is empty when you
I am going through some of my older sites where I have a contact
I have a contact form that is being submitted, I have PHP validation all

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.