RE: [PHP] Newbie Question regarding Syntax
| From: | Creative Solutions New Media | Date: | Sun, 17 Aug 2003 23:32:20 +0000 |
| Subject: | RE: [PHP] Newbie Question regarding Syntax | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-159873@lists.php.net to get a copy of this message | ||
Sorry guys.....It think there is a bit of confusion.
I miss typed what I need to do.....
$row_rep_RS['repEmail'] is actually the email address I want to turn into a
link.
So I guess it would look something like.....
<?php echo 'Email: '.'<A
HREF=mailto:'.$row_rep_RS['repEmail'].'>'.$row_rep_RS['repEmail'].'</A>';
?>
Whew....think I made a mess of that!!!!
Is that any more clear?
Thanks for the very quick responses guys!!!!!
Tim Winters
Manager, Creative Development
Sampling Technologies Incorporated (STI)
webmaster@samplingtechnologies.com
csnm@samplingtechnologies.com
W: 902 450 5500
C: 902 430 8498
-----Original Message-----
From: Curt Zirzow [mailto:curt@zirzow.dyndns.org]
Sent: August 17, 2003 8:28 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Newbie Question regarding Syntax
* Thus wrote Creative Solutions New Media (csnm@ns.sympatico.ca):
> <?php echo 'Email: '.'<A
>
> HREF="mailto:me@mine.com">'.$row_rep_RS['repEmail'].'</A>';
> ?>
>
> Obviously this isn't working. What is the proper syntax when you have to
use
> double quotes inside the tag?
I usually prefer this method, its a style choice and others might
argue using it.:
Email: <a href="mailto:me@mine.com">
<?php echo $row_rep_RS['repEmail']; ?></a>
A lot easier/cleaner than to trying to concat and escape
everything.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php