visitor (0 QPoints)
  • FR
  • EN
  • NL
  • DE
  • ES
316 experts, 1194 registered users, 1659 questions already answered
European Experts Exchange, the very best site for high-quality IT solutions

New Improved Search!

 


05/10/2011 1h30 : Steve Jobs is dead, the father of Apple ][ is gone, we are all orphaned.

Languages :: PHP :: viewmsg.php&id=1 returns 404 - not found file


By: thee_beaver U.S.A.  Date: 20/09/2003 00:00:00  English  Points: 125 Status: Answered
Quality : Excellent
My website message board : <A HREF="http://marak210.8bit.co.uk">http://marak210.8bit.co.uk</a> needs to pass the topic number onto viewmsg.php, but when I put :

echo("<A HREF=viewmsg.php&id=");
echo $post;
echo(">");

it comes up as 404 - page cannot be displayed.

any suggestions?
By: VGR Date: 21/09/2003 18:55:00 English  Type : Answer
viewmsg.php has to reside in the same PHP script that issues thos statement to the browser. If it's a file in a subdirectory... This won't work.

PS use echo("<A HREF=viewmsg.php&id=$post>something</A>");
By: VGR Date: 21/09/2003 18:56:00 English  Type : Comment
beware of spaces in $post. If you don't know if it's padded or not, then use quotes around it
By: VGR Date: 21/09/2003 20:18:00 English  Type : Comment
type : "in the same directory as the script [...]"

Do register to be able to answer

EContact
browser fav
page generated in 12044.125080 milliseconds

Why Google AdSense ads ?

compteur
 Ranking-Hits PageRank for this page