I need some help with php coding
how do i create a simple php script that do the following
e.g I use
myscript.php?v=123abc
the myscript.php will load
http://therealaddress.com/page/whatever/123abc.html
Notice that 123abc is enter then the script capture the QueryString and use it to go to the real longer address. how do i do it?
anyone can show me the code or where to learn about it
New to PHP
Moderator: General Moderators
- aditya2071990
- Forum Contributor
- Posts: 106
- Joined: Thu May 22, 2008 11:30 am
- Location: Hyderabad, India
- Contact:
Re: New to PHP
In myscript.php, place something like this:
Code: Select all
<?
$requestedpage=$_GET['v'];
header(location:$requestedpage);
?>