...

View Full Version : Hyperlink in inc.recommend.php



rlhenryjr
03-12-2007, 04:35 PM
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>';

_Aerospace_Eng_
03-12-2007, 05:06 PM
Hmm I suggest trying to actually learn php rather than make stuff up. Look into the term concatenation (http://www.hypermedic.com/php/strings1.htm).

<?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>';
}



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum