/    Sign up×
Community /Pin to ProfileBookmark

email link in a php grid

[solved]

I have this php grid built, but I need the 3rd column to be email links. I am displaying the email address but I need to make it a link to bring up an html equivalent to mailTo:

[CODE]
{
boxStart id = “coaches”
caption = “Coaches”
style = “grey2”
}

{
listStart id = “coaches_list”
caption1 = “Name”
caption2 = “Position”
caption3 = “Email”

colWidth1 = “40%”
colWidth2 = “40%”
colWidth3 = “20%”

rows = 5
}

{
foreach from = $coaches item = coach
}

{
listRow list = “coaches_list”
column1 = “`$coach->Info.firstname` `$coach->Info.lastname`”
column2 = $coach – > Info.position
column3 = $coach – > Info.email
}

{/foreach}
{listEnd id=”coaches_list”}
{boxEnd id=”coaches”}[/CODE]

Thanks!

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@mthorauthorFeb 22.2011 — solved!!

I added colum3_link = "mailTo:$foo->Info.email"
×

Success!

Help @mthor spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.25,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @AriseFacilitySolutions09,
tipped: article
amount: 1000 SATS,

tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,
)...