Email address obfuscation in effect -- please
click here to turn it off.
[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
Sometimes it is convenient to have the user click a link on a web page that
passes info to a PHP script. I've been using links like:
<a href="myscript.php?action=myaction&page=mypage">My link</a>
I can "get" the values of action and page in the script and output the html
accordingly. This works great, but then I noticed that the URL in the
address bar of the browser displays ugly stuff like:
http://www.mydomain.com/myscript.php?action=myaction&page=mypage
The only way I know to clean up the URL to something nicer is to have
myscript.php extract the get variables, save them in session variables, and
call the PHP function header("Location: http://www.mydomain.com/myaction/")
to redirect the browser to another script which reads the values back out of
the session variables, processes the request, and outputs the html. This
requires the browser to go through a redirect process and make another trip
back to the web server.
Of course there has to be a simpler way to clean things up. Any ideas?
Thanks,
Bruce
_________________________________________________________________
STOP MORE SPAM with the new MSN 8 and get 2 months FREE*
http://join.msn.com/?page=features/junkmail
_______________________________________________
members mailing list
EMAIL:PROTECTED
http://mlug.missouri.edu/mailman/listinfo/members