Menu

Simple Question

Help
2009-07-21
2013-06-03
  • Lyndon Dunville

    Lyndon Dunville - 2009-07-21

    I have set up a System where I enter in there Email and Name, it sends them a email with all the Information that they need, and all that good stuff.  What I want, which I thought would be so simple, is not working.  I would like to Enter in a Hyperlink, into the form to show up in there email that they can click to go to a website, but It, just Doesn't want to work!

    <?php

    $where_form_is="http://".$_SERVER['SERVER_NAME'].strrev(strstr(strrev($_SERVER['PHP_SELF']),"/"));

    $mysubject="{T&A} Recruitment";

    mail($_POST['field_2'],$mysubject,"phpFormGenerator - Form submission"," 

    Hello " . $_POST['field_1'] . "

    This is {T&A}Postulio

    I'm just emailing you to tell you that
    you have been Accepted into the {T&A} clan.

    There is only 1 thing left to do,

    Click on the Link and Fill out the Information!

    <a href=\&quot;http://t-and-a.host22.com/form/tmp/persistent/T&amp;A%2520Signup/form.html">{T&A} Registration</a>";

    Now go Introduce your self on the forums, and play a game or two,
    but most of all have fun! 
    ");

    include("confirm.html");

    ?>

     
    • TNTEverett

      TNTEverett - 2009-07-21

      The default format of a mail() message is plain text.  You can not create a clickable link in plain text.  You must send the message as html. 
      See Example 3 on this page:
      http://www.w3schools.com/PHP/func_mail_mail.asp

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.