I would encourage you to use double quotes instead of single quotes
inside the PHP code. After this, you must comment HTML double quotes so
the PHP engine does not consider these as part of its code. I would type
your example like this:

<?php

echo "Email: <a
href=\"mailto:[EMAIL PROTECTED]">".$row_rep_RS['repEmail']."</a>";

?>

Note how the only concatenated string (using periods) is the variable
$row_rep_RS[] and the double quotes inside the HTML link were commented
using a backslash.

HTH,

Cesar Aracena
www.icaam.com.ar 

> -----Mensaje original-----
> De: Creative Solutions New Media [mailto:[EMAIL PROTECTED]
> Enviado el: Domingo, 17 de Agosto de 2003 08:08 p.m.
> Para: [EMAIL PROTECTED]
> Asunto: [PHP] Newbie Question regarding Syntax
> 
> <?php echo 'Email: '.'<A
> HREF="mailto:[EMAIL PROTECTED]">'.$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?
> 
> Thx
> 
> Tim Winters
> Manager, Creative Development
> Sampling Technologies Incorporated (STI)
> [EMAIL PROTECTED]
> [EMAIL PROTECTED]
> W: 902 450 5500
> C:  902 430 8498
> 
> 
> 
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to