Hi all,
I want to use php variable for example $Lang[0] in the href as
<a href=$Lang[0] target=_blank>
where $Lang[0]="http://www.dailyhungama.com"
thanks in advance
ramukumar
0
Newbie Poster
Recommended Answers
Jump to PostHi all,
I want to use php variable for example $Lang[0] in the href as
<a href=$Lang[0] target=_blank>
where $Lang[0]="http://www.dailyhungama.com"
thanks in advance<a href="<?= $Lang[0] ?>" target="_blank">My Lang Link</a>
Jump to Postecho "<tr><td><a href='$Link[$j]' target='_blank'> <img src='/images/news3.gif' /> <font color='#FFFFFF' size='3'>$NewsPapers[$j]</font></a></td>";
the html is screwed up,
a mix of xhtml and html,
attributes are required to be quoted,
dtd is required
some browsers will fail to render on this type of errorwrape code in [code=language] [/code] …
Jump to Postif you want to use in side the html tag or href
use like this
<a href="<?php echo $Lnag[0] ?>"><?php echo $Lnag[0] ?></a>
this is the answer for you question.
if any dobut reply me.Do not use this code in your file, the poster has not bothered to read …
All 9 Replies
techniner
2
Posting Pro
ramukumar
0
Newbie Poster
almostbob
866
Retired: passive income ROCKS
karthik_ppts
commented:
useful
+5
dhanushree
0
Newbie Poster
almostbob
commented:
Do not use this code in your file, the poster has not bothered to read any part of your existing code and this generic crap will kill php at the first [icode]?>[/icode]
+0
almostbob
866
Retired: passive income ROCKS
TheWabbit
0
Newbie Poster
milesreid
0
Newbie Poster
xaeon
0
Newbie Poster
aru211285
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.