I am a PHP newbie..please help me with this...
In my php script, I have written code to pull out the url variables and to store them in an array
For eg: if my url is www/viewgallery.php?cname=Colorado-Fall&pcaption=Light-On-Dunes
Then in my array 'path_info' I have
$path_info[base] = /
$path_info[query_var][cname] = Colorado-Fall
$path_info[query_var][pcaption] = Light-on-Dunes
Now, How can I use this array to make clean urls in my php code?
If I try to write the link as
it won't take me to the requested page.
Ultimately, I want the url in my address bar to look as
How can I make this link work with my php script? I know I can do this with .htaccess but is it possible to do it just with my php script using my array variables?
Thank you for your help....