PDA

View Full Version : URL Dynamic value passing error



avirup
09-21-2008, 10:47 PM
hi

I read an old thread ...

to pass value using url...the value is dynamic..

I have put


<div id="apDiv27"><img src="/images/black_bul.jpg" width="15" height="15" />
<a href="user_profile_view.php?profile_id=<?php print $profileid ?>" class="textstyle3"><font color="#990000">&nbsp;View Profile</font></a>



and also tried



<div id="apDiv27"><img src="/images/black_bul.jpg" width="15" height="15" />
<a href="user_profile_view.php?profile_id=<?=$profileid?>" class="textstyle3"><font color="#990000">&nbsp;View Profile</font></a>


But both of them are not working...showing only

http://localhost/user_profile_view.php?profile_id=

in url..

can anybody help me plzzz

Thank you

Nile
09-22-2008, 03:39 AM
Try this:


<?php
echo <<<TEXT
<div id="apDiv27"><img src="/images/black_bul.jpg" width="15" height="15" />
echo '<a href="user_profile_view.php?profile_id=$profileid>" class="textstyle3"><font color="#990000">&nbsp;View Profile</font></a>
TEXT;
?>