SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist Raining_Curses's Avatar
    Join Date
    May 2005
    Posts
    560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Why does this come up as url not found?

    Hi,

    Basically why does this code come up as url not found???

    PHP Code:
    echo '<a href="../executes/deletem_exec.php&a='.$aMessage['id'].'">Delete</a> 
    It seems to be something to do with the &a= bit because if i remove it and just have this;

    PHP Code:
    echo '<a href="../executes/deletem_exec.php">Delete</a> 
    Then it works fine

    Thanks,
    Raining
    www.thetrial.staronesw.com
    Check out my online text based rpg (In development!!)

  2. #2
    dooby dooby doo silver trophybronze trophy
    spikeZ's Avatar
    Join Date
    Aug 2004
    Location
    Manchester UK
    Posts
    13,788
    Mentioned
    151 Post(s)
    Tagged
    3 Thread(s)
    Because it should be a question mark seperating the url from the argument!

    PHP Code:
    echo '<a href="../executes/deletem_exec.php?a='.$aMessage['id'].'">Delete</a> 
    Mike
    Mike Swiffin - Community Team Advisor
    Only a woman can read between the lines of a one word answer.....

  3. #3
    SitePoint Evangelist Raining_Curses's Avatar
    Join Date
    May 2005
    Posts
    560
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    OMG DURR lol

    Cannot believe i didnt spot that. That will teach me to take the short cut of editing my code rather than re writing the whole line

    Thanks
    www.thetrial.staronesw.com
    Check out my online text based rpg (In development!!)


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
  •