|
Posted by Janwillem Borleffs on 11/15/80 11:26
IWP506@gmail.com wrote:
> So I would structure my links like
> "http://www.domain.com/parse.php?link=aboutUs.html". It would read in
> aboutUs.html, do a string replacement in the appropriate places, then
> output what's left.
>
> But something is giving me the feeling that this is a bad idea.
>
> What do you think?
>
I agree that this is a bad idea. Even when you thoroughly validate the
contents of the link parameter, it reduces the maintainability of your site.
If you want to change the name of the page, you will have to modify all
references. A better solution would be to use a link like:
http://www.domain.com/parse.php?link=about
This way, it's not important how the template file is called and you can
validate the link parameter easily against a list of valid values.
JW
Navigation:
[Reply to this message]
|