Results 1 to 2 of 2

Thread: URL Dynamic value passing error

  1. #1
    Join Date
    Sep 2008
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default URL Dynamic value passing error

    hi

    I read an old thread ...

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

    I have put
    PHP Code:
    <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

    PHP Code:
    <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

  2. #2
    Join Date
    Jan 2008
    Posts
    4,168
    Thanks
    28
    Thanked 628 Times in 624 Posts
    Blog Entries
    1

    Default

    Try this:
    PHP Code:
    <?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;
    ?>
    Jeremy | jfein.net

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •