Need help with $TMPL

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

westside
New php-forum User
New php-forum User
Posts: 4
Joined: Fri Oct 19, 2012 12:20 pm

Need help with $TMPL

Postby westside » Fri Oct 19, 2012 12:24 pm

Hi guys,

im noob and having this kind of problem.

Code: Select all

if ($TMPL['downurl'] == NULL) { $TMPL['downurl'] = 'Not Available'; } else { $TMPL['downurl'] = ''.$TMPL['downurl']; }


how do i make the output become hyperlink. Thank You!

johnj
php-forum Super User
php-forum Super User
Posts: 1805
Joined: Thu Mar 10, 2011 5:07 pm

Re: Need help with $TMPL

Postby johnj » Fri Oct 19, 2012 9:55 pm

Code: Select all

if ($TMPL['downurl'] == NULL) { $TMPL['downurl'] = 'Not Available'; } else { $TMPL['downurl'] = ''.$TMPL['downurl']; }

echo "<a href='".$TMPL['downurl']."'>your url</a>";

westside
New php-forum User
New php-forum User
Posts: 4
Joined: Fri Oct 19, 2012 12:20 pm

Re: Need help with $TMPL

Postby westside » Sat Oct 20, 2012 8:05 am

Hooreyy, it works.. Thank You so much!!!


Return to “PHP coding => General”

Who is online

Users browsing this forum: No registered users and 1 guest