SitePoint Sponsor

User Tag List

Results 1 to 7 of 7

Thread: output

  1. #1
    SitePoint Guru
    Join Date
    Sep 2007
    Posts
    971
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    output

    <div align="center" id="ie5menu_Username"></div><hr>
    <div class="menuitems" url="prvchat.php?username=">Private chat</div>
    <div class="menuitems" url="ignoreuser.php?username=">Ignore user</div>

    i got this code the part where ie5menu_Username outputs the table i clicked but i cant seem to get it to link to prvchat.?username=NAME HERE
    Animated Chatrooms - www.121chatrooms.net

  2. #2
    SitePoint Wizard chris_fuel's Avatar
    Join Date
    May 2006
    Location
    Ventura, CA
    Posts
    2,750
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    div doesn't have an attribute url like that. You'll just want a simple link:

    Code:
    <div class="menuitems"><a href="prvchat.php?username=">Private chat</a</div>
    <div class="menuitems"><a href="ignoreuser.php?username=">Ignore user</a></div>

  3. #3
    SitePoint Guru
    Join Date
    Sep 2007
    Posts
    971
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    there must be a way because a single link wont work i need to make the link something like prvchat.php?username="ie5menu_Username"
    Animated Chatrooms - www.121chatrooms.net

  4. #4
    SitePoint Wizard chris_fuel's Avatar
    Join Date
    May 2006
    Location
    Ventura, CA
    Posts
    2,750
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you want to fill in the username= part with the appropriate username you need to figure out what's holding the value of the username and insert it dynamically.

  5. #5
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,712
    Mentioned
    102 Post(s)
    Tagged
    4 Thread(s)
    How is the page being created? If it's something like PHP then you can find out the username beforehand, and add that to the href for the anchor element.
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  6. #6
    SitePoint Guru
    Join Date
    Sep 2007
    Posts
    971
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i dont understand the login page i posted isnt php the formsubmit page is but i doubt that has anything to do with it are u sure the code is correct and everything is in the right place?
    Animated Chatrooms - www.121chatrooms.net

  7. #7
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,712
    Mentioned
    102 Post(s)
    Tagged
    4 Thread(s)
    I'm not sure which code you're talking about here.

    The username that you want to be placed in the link, where is that coming from?
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript


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
  •