I am trying to handle the data from the user without using $_POST and $_GET php system based arrays.
Why on Earth would you want to do that? $_POST and $_GET are much easier to handle, and far more portable and secure than using register_globals (the configuration setting on which you're relying in the above code). A similar effect can be achieved by adding:
Code:
foreach($_POST as $k => $v) {
$$k = $v;
global $$k;
}
... to the top of the page, but as mentioned, it's not a good idea, since in some situations a malicious user could use it to override important variables in the script that you trust.
Bookmarks