Languages :: PHP :: viewmsg.php&id=1 returns 404 - not found file |
|||
| By: thee_beaver |
Date: 20/09/2003 00:00:00 |
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 | 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 | 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 | Type : Comment |
|
| type : "in the same directory as the script [...]" |
|||
|
Do register to be able to answer |
|||
©2010 These pages are served without commercial sponsorship. (No popup ads, etc...). Bandwidth abuse increases hosting cost forcing sponsorship or shutdown. This server aggressively defends against automated copying for any reason including offline viewing, duplication, etc... Please respect this requirement and DO NOT RIP THIS SITE.
Please DO link to this page!








