dabuddha
Lifer
i can't figure it out
i'm still a early beginner in PHP but heres what i have
echo '<TR><TD><A HREF=moduser.php?userid=' . $row["username"] . '>' . $row["username"] . '</A></TD><TD>' . $row["email"] . '</TD></TR>';
what im trying is to have the link point to moduser.php?userid
problem is when i run it and put my mouse over it, i get this as the URL
http://www.domain.net/moduser.php?userid=first
the correct userid is "first last" I dont really care if it puts the www.domain.net in front of the URL but why does it do that? I can't find any documentation on this. (maybe cause im not sure where to look 🙂 )
i tried putting quotes around moduser and the username like this:
echo '<TR><TD><A HREF=\"moduser.php?userid=' . $row["username"] . '\">' . $row["username"] . '</A></TD><TD>' . $row["email"] . '</TD></TR>';
but that just gives me this:
http://www.domain.net/"moduser.php?userid=first (for users with 2 words for their userid)
http://www.sanika.net/"moduser.php?userid=first\" (for users with 1 word for their userid)
tia 🙂
i'm still a early beginner in PHP but heres what i have
echo '<TR><TD><A HREF=moduser.php?userid=' . $row["username"] . '>' . $row["username"] . '</A></TD><TD>' . $row["email"] . '</TD></TR>';
what im trying is to have the link point to moduser.php?userid
problem is when i run it and put my mouse over it, i get this as the URL
http://www.domain.net/moduser.php?userid=first
the correct userid is "first last" I dont really care if it puts the www.domain.net in front of the URL but why does it do that? I can't find any documentation on this. (maybe cause im not sure where to look 🙂 )
i tried putting quotes around moduser and the username like this:
echo '<TR><TD><A HREF=\"moduser.php?userid=' . $row["username"] . '\">' . $row["username"] . '</A></TD><TD>' . $row["email"] . '</TD></TR>';
but that just gives me this:
http://www.domain.net/"moduser.php?userid=first (for users with 2 words for their userid)
http://www.sanika.net/"moduser.php?userid=first\" (for users with 1 word for their userid)
tia 🙂