Forum Moderators: coopster
As I've written some php, I can't send the variable from the html.
(That means I can't send the value by the "?" follows the ".php"
As the following example,
I type the [127.0.0.1...]
It also showns "no selection!"
<?
if ($a=="first")
{
echo "First is selected!";
}
else
{
echo "no selection!"
}
?>
Are there any settings in Apache or PHP?
My guess is that register_globals [ca3.php.net] is off.
Therefore you need to access variable in the url using the $_GET [ca3.php.net] superglobal array. So try your code using
<?
if ($_GET['a'] == "first") echo "First is selected!";
else echo "no selection!"
?>