it's because you've got single quotes inside single quotes... change $_GET['id'] to $_GET[id]
-----Original Message----- From: X-power.be [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 11, 2002 10:04 AM To: [EMAIL PROTECTED] Subject: Re: [PHP] URL / slash reduction the nickname 'junni' was an example.. i have this now but its not working :( <?php $url = str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/$_GET['id ']'); ?> <head><META HTTP-EQUIV="Refresh" CONTENT="0; URL=http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=<? print $url ?>"></head> gives: Parse error: parse error in /usr/home/v1/a0016905/html/user/filter.php on line 2 the meaning of it is that http://user.tuned-belgium.be/nickname goes to http://tuned-belgium.com/main/modules.php?name=user&op=userinfo&uname=nickna me ------- ------- ------- ------- ------- ------- Connecting Tuners @ http://www.Tuned-Belgium.com Xbox talk @ http://www.X-power.be Gamecube @ http://www.cube-power.be "Dave" <[EMAIL PROTECTED]> schreef in bericht [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > >this url is the one that i want for my users: > > > >http://user.tuned-belgium.be/junni > > > > > >but go's now to > > > >http://www.tuned-belgium.com/user/?id=/junni (slash junni) > > > >but must go to > > > >http://www.tuned-belgium.com/user/?id=junni (without slash) > > > >how can i prevent or filter the slash away? > > without getting eloquent... and assuming your url string is static each time > ($id doesn't move withing your url string). > > $url = > str_replace('?id=/','?id=','http://www.tuned-belgium.com/user/?id=/junni'); > > Dave > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php