PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Problem populating email field from query string

  1. pmcall
    Member

    I'm trying to populate an email field from a link that will be sent to people in an email. For example:

    http://www.newfuturescircle.com/access/preference-update/?email=person@domain.com

    If I copy and paste the link into the web browser, it works fine. But if I click the link, which is what I'd want users to do, the @ sign is removed.

    Is there another way to do this, or am I doing something wrong?

    Thanks.

    Pam

    Posted 14 years ago on Wednesday September 8, 2010 | Permalink
  2. pmcall
    Member

    OK, this is really weird. Clicking the link I just posted works fine. But clicking the same link in a plain-text email loses the @ sign. Is there a reason for this? I'm not much of a techie ...

    Pam

    Edited to add: Same result (losing the @ sign) clicking the link in an HTML-formatted email. Tried it from Apple Mail, and from Gmail on Firefox and Safari.

    Posted 14 years ago on Wednesday September 8, 2010 | Permalink
  3. pmcall
    Member

    Figured it out myself. For the benefit of anyone who comes across this, the answer seems to be that the URL has to be encoded, changing the @ to %40. Then it works fine.

    So I did a little PHP script to accomplish that. Bit of a workaround for something I thought was going to be easy, but I think I have it working now.

    Posted 14 years ago on Wednesday September 8, 2010 | Permalink