RE: [PHP] Echo # problem
| From: | Chris Hayes | Date: | Wed, 12 Feb 2003 13:02:19 +0000 |
| Subject: | RE: [PHP] Echo # problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-135302@lists.php.net to get a copy of this message | ||
At 13:46 12-2-03, you wrote:
The code I am trying to get working is shown below however, as the # is interpreted as a comment the header function is only redirecting to ./itemadmin.php3?submittedby=$submittedby&cat=$cat $head = "./itemadmin.php3?submittedby=$submittedby&cat=$cat#$edit"; header ("Location:$head");I think the problem may be that the #zzz should be before the ?x=1&y=2 If i am right it means that # was not considered a comment by PHP but that the browser cannot find it.Does the url in the browser show with the #edit part? In that case try $head = "./itemadmin.php3#$edit?submittedby=$submittedby&cat=$cat"; or maybe $head = './itemadmin.php3#'.$edit.'?submittedby='.$submittedby.'&cat='.$cat; PS ./ ?