...

View Full Version : mailto array not working



jcdevelopment
10-20-2009, 06:07 PM
I am trying to load an agents email into the code dynamically and all i get is


mailto:Array['email']

what do i need to do, to make this work, or rather what am i missing?



echo "<td><p class=\"copy_agent\"><a href=\"mailto:$agents[$i]['email']\">".$agents[$i]['email']."</a></p></td></tr>";


thanks for any help.

SKDevelopment
10-20-2009, 06:12 PM
You need curly braces around $agents[$i]['email'] in a double-quoted string:


echo "<td><p class=\"copy_agent\"><a href=\"mailto:{$agents[$i]['email']}\">".$agents[$i]['email']."</a></p></td></tr>";

jcdevelopment
10-20-2009, 06:16 PM
as soon as i posted this, i saw thought. Thank you very much though!



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum