Could someone please help me.
Is it possible to show addresses such:
http://www.spanishinvest.com/list.php?area_id=5
like this instead:
http://www.spanishinvest.com/area_costa_del_sol.html
Thanks for any advice in advance.
Luke
Hi Luke,
The first:
http://www.spanishinvest.com/list.php?area_id=5
calls the php-script named list.php.
In this script it is possible to retrieve the passed value for area_id.
Like this
$areaID = $_GET["area_id"];
What the script uses that value for, I cannot say of course.
The second is just a normal URL:
http://www.spanishinvest.com/area_costa_del_sol.html
and has nothing to do with PHP, because it is plain HTML.
What is your problem/question excactly?
Regards,
Erwin Moller
> Is it possible to show addresses such:
> http://www.spanishinvest.com/list.php?area_id=5
>
> like this instead:
> http://www.spanishinvest.com/area_costa_del_sol.html
Yes. Search term: mod_rewrite.
--
Jock
This isn't a php problem.
If you're using Apache look into mod_rewrite and .htaccess.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstu...@attglobal.net
==================
and the geek's way also an apache mod :}
With mod_mime you can associate php mime with other extension
> If you use apache and have root privileges you should use
You don't even need root privs, just AllowOverride privs within Apache.
Not PHP-related, though.
--
JDS | jef...@example.invalid
| http://www.newtnotes.com
DJMBS | http://newtnotes.com/doctor-jeff-master-brainsurgeon/