BizzyLizzy
Technical User
Hi there.
Hope someone can help a complete php newbie.
currently our website has the following code. Very simple and I believe pretty insecure. (our hosters have register globals on).
<?php
$view = $_GET['view'];
?>
then
<?php include ("$view.php"); ?>
then in the links section of the navigation bar.
index.php?view=home
index.php?view=aboutus
etc etc (there are about 10 pages in all
The problem with this is that the resultant URL is shown as
Now correct me if I am wrong but isnt this terribly insecure? (I didnt write this by the way I inherited it.).
I have been told that using $_POST would be a better way but I am not sure how I go about changing things. Ideally I would like to have the url just shown as
Am I making any sense here? Hopefully one of you clever people can give me some assistance.
Many thanks
Lizzy
Hope someone can help a complete php newbie.
currently our website has the following code. Very simple and I believe pretty insecure. (our hosters have register globals on).
<?php
$view = $_GET['view'];
?>
then
<?php include ("$view.php"); ?>
then in the links section of the navigation bar.
index.php?view=home
index.php?view=aboutus
etc etc (there are about 10 pages in all
The problem with this is that the resultant URL is shown as
Now correct me if I am wrong but isnt this terribly insecure? (I didnt write this by the way I inherited it.).
I have been told that using $_POST would be a better way but I am not sure how I go about changing things. Ideally I would like to have the url just shown as
Am I making any sense here? Hopefully one of you clever people can give me some assistance.
Many thanks
Lizzy