Hi,

I have links like this on my site.

show?cat=AD Management

Netscape will not apend the 20% to the url.
i.e show?cat=AD20%Management

Is there something that I can do to fix this?

Thanks!!!

    Hi,

    Mayby is this tomething:
    eregi_replace("%20","",$yourvariable);

      • [deleted]

      urlencode() does the trick.

        wat betekent does the trick?
        Je mag in het nederlands antwoorden

          Thanks I did. I now that it is proper to not do it.

          I am IT Manager for a large hosting company. And if Internet systems forced people to do everything properly 90 Percent on internet user could not use the internet. ๐Ÿ™‚

          I see that in 6.2 they have allowed the browser to do this.

          Thanks.

            • [deleted]

            <dutch>
            dat mag wel, maar dat is niet netjes op een engelstalig forum
            </dutch>

            "does the trick" means "solves your problem, does what you are looking for"

              Well, personally I think it's proper to avoid sending data though GET streams at all costs๐Ÿ™‚ If I do have to, I always use the underscore instead of a space anyways.

              Besides, I'm not asking that Internet systems forced everyone to do things properly.... Joe User would have a heart attack๐Ÿ™‚ All I want for X-Mas is for programmers and designers to be forced to do things properly. How many pages have you come across this week that don't render in Netscape or Mozilla cause some lazy bugger didn't close a table tag and his testing in IE didn't tell him anything was wrong? Joe User doesn't need to know anything about that kinda of stuff, but it'd still make his and our lives a bit better๐Ÿ™‚

              Irregardless of which way it "proper", as you pointed out it's a pretty moot point at this stage in the game, there are still browsers which don't automatically urlencode() GET variables not sent by a form. But then again, I also hate spaces in folder and filenames...... makes command line a real pain in the arse๐Ÿ™‚

              -geoff

                • [deleted]

                I second that motion.

                Nowadays computer systems and software is getting way too idiot-proof. Joe User doesn't have to worry about anything anymore, so Joe User thinks computers are easy.

                How many people here on PHPbuilder know about the existence of FTP? Judging by the amount of people who want to upload 30MB files through HTTP I'd say about 5%.

                The internet and computers in general have become the property of people from all walks of life.

                That is good, that's fine, everybody should be able to enjoy computers and the internet. But it should not mean that all software should contain a ton of code just to correct the mistakes that the programmer makes.

                  Write a Reply...