-- PLEASE DISREGARD EVERYTHING jazzymass POSTED ABOVE -- for the love of god do not enabled register globals. this is a HUGE security problem, that is why the php community set this setting disabled by default in php 4.2.0. you need to learn how to develop your scripts with register globals disabled because nearly all webhosts have that setting disabled.
so, to get your code to work, you need to first change if to work with register globals off, and also use full php tags, so change your script to this
<?php
echo $_GET['action'];
?>
more on register globals
[
www.php.net]
also, jazzymass stated that you should should enable the open_tag setting in your php.ini file. do not do it, it is not the standard php coding practice to use short tags. also it you will be using xml, it needs to use short style tags, and if you have php set to use those short tags, it will not work.
jazzymass, should learn to develop your scripts with the recommended defaults php such as register globals disabled and short style tags disabled. just because there is a setting in the php.ini file to change something does not mean you should change it.
most, if not all web hosts by now have register globals disabled. this means if you which to use get a web hosting account and upload your scripts there, you will run into huge problems getting your scripts to work correctly have having to do massive code rewrites that could have been easy avoided by writing deployable code. also, if you will be selling your code for others to use, when they try to use it on their servers they too will have all these same problems. talk about a giant headache trying to solve all the tech suport requests for that mess.
CyberSpatiumWAMP English Forum Admin