Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Apr 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Hyperlink in inc.recommend.php

    Hi there.

    This is a great script but I would like to put a "home" link on the
    "Message was successfully sent" page.
    See where I have the [$URL]?
    I cannot get it to become a hyperlink in the message.
    I want people to go back to the home page after submitting.
    Any help would really be appreciated.



    <?php
    if($mailsent) {
    echo empty($sent) ? '' : '<p>Message was successfully sent to ' . implode(', ', $sent) . '</p>';
    echo empty($failed) ? '' : '<p>Message was NOT successfully sent to ' . implode(', ', $failed) . '<br />Please try again later!</p>';
    echo '<p>Thank you very much for recommending the ' , $sitename , '</p>';
    echo '<p>Home' , $url , '</p>';

  • #2
    Supreme Master coder! _Aerospace_Eng_'s Avatar
    Join Date
    Dec 2004
    Location
    In a place far, far away...
    Posts
    19,291
    Thanks
    2
    Thanked 1,043 Times in 1,019 Posts
    Hmm I suggest trying to actually learn php rather than make stuff up. Look into the term concatenation.
    PHP Code:
    <?php
    if($mailsent) {
    echo empty(
    $sent) ? '' '<p>Message was successfully sent to ' implode(', '$sent) . '</p>';
    echo empty(
    $failed) ? '' '<p>Message was NOT successfully sent to ' implode(', '$failed) . '<br />Please try again later!</p>';
    echo 
    '<p>Thank you very much for recommending the '.$sitename.'.</p>';
    echo 
    '<p>Home'.$url.'</p>';
    }
    ||||If you are getting paid to do a job, don't ask for help on it!||||


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •