CODE
echo "<form action=\"" . $_SERVER['REQUEST_URI'] . "\" method=\"GET\"> \n";
so say the page it loads on is something like index.php?page=article&id=8
when i submit the form, it ignores the query string and just goes back to index.php
i tried something like
CODE
$action = $_SERVER['PHP_SELF'] . "?" . $_SERVER['QUERY_STRING'];
echo "<center><br/>\n<form action=\"" . $action . "\" method=\"GET\"> \n";
echo "<center><br/>\n<form action=\"" . $action . "\" method=\"GET\"> \n";
or
CODE
$action = $_SERVER['SCRIPT_NAME'] . "?" . $_SERVER['QUERY_STRING'];
echo "<form action=\"" . $action . "\" method=\"GET\"> \n";
echo "<form action=\"" . $action . "\" method=\"GET\"> \n";
is there anyway around this still using a form? if not, i could just list the form options as hyperlinks and pass the variable on through that, or i could just have the website reload to the home page whenever someone updates the theme.
also, a question of curiosity, what is the difference between $_SERVER['PHP_SELF'] and $_SERVER['SCRIPT_NAME']?


