URL mapping

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
desmondlk
Forum Commoner
Posts: 27
Joined: Tue Sep 24, 2002 10:27 pm
Location: Malaysia

URL mapping

Post by desmondlk »

Dear all,

Any idea on how to mapping the URL?

For example, if a hyperlink is localhost/testing?id=123&name=test

how to map it to localhost/testing

This means that i do not want to show the passing variables.

Any idea insteads of using frame on page?

Thanks in advance.
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

If you want to pass variables between pages and don't want them to be visible to users you should consider cookies or sessions:

COOKIES
http://www.php.net/manual/en/features.cookies.php
http://www.php.net/manual/en/function.setcookie.php

SESSIONS
http://www.php.net/manual/en/ref.session.php
http://www.php.net/manual/en/function.session-start.php
viewtopic.php?t=6521 (an example of using sessions)

Mac
Post Reply