i have a link such as :

ex : localhost/index.php?do=home
and localhost/index.php?do=contact&id=10&act=update.....

i saw that my urls not good, which show my command to users and users can know my command. So, i want my url such as :

http://localhost/index.php/contact/10/update/../

Please, show me the method to can hidden my command in url and have a good url

thks
regards

    You show the command to the user anyway, you just don't show the variable names. Let's say that you are worried that the user will change id.

    From: index.php?id=10
    To: index.php?id=11

    With the other way of doing it they just need to do like this.

    From: index.php/10
    To: index.php/11

    I suggest that you don't worry about this if you are only worried about the user changing the values.

      yeah ! so i want my good url . i like more index.php/10 than index.php?id=10

      if you have this code, please show me.
      thk Piranha

        I don't have it, I just know that it is something that you change in Apache. Search the boards, there are lots of threads about this.

        But judging by your previous post I suggest that you become familiar with PHP and databases first and then worry about these kind of things.

          I setup server by IIS . So i want like Apache server do it !

            Ok, let me be as clear as I can be:

            RTFM to be able to know how to do it.

            But don't bother, it is more important to RTFM in mysql and learn simple SQL first. You try to change the small things when you haven't grasped the big picture.

            FIRST learn PHP and SQL.
            THEN worry about these kind of things.
            If you try to do it all at once it will be to much and you will give up.

              This method is called mod rewrite in apache dont know about IIS ...

                If you're using get, you can probly use post instead...

                  Write a Reply...