$_GET
Posted: Sat Mar 11, 2006 7:06 am
feyd | Please use
Further down in the code the $nextloc is being concatenated to the include file name. I understand what is being done here but what I don't understand is where the action variable is being associated with a file name. I am somewhat lost. Is this enough info for someone to help me out?
For example, the action variable 'profile' calls a file called ttse_erv_profileform.inc. And 'profile_entry' calls ttse_erv_profileentry.inc and so on.
Any insight is greatly appreciated.
I should add that this is PHP 4.33, an Oracle 10g database, on a RedHat Linux 3.0AS, and an Apache 1.3.28 web server.
Thanks,
new_developer
feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
Hi,
I am brand new to coding in PHP and new to this forum and I need help. I am working on an existing website. Everything goes throug an index.php file and there are many include files. The files are 'called' with an action as in a=[i]action_name[/i].
The following code is in the index.php file:Code: Select all
if (isset($_GET) && ($_GET["a"] != "")) {
$nextLoc = $_GET["a"];
} else if (isset($a) && ($a != "")) {
$nextLoc = $a;
} else {
// Default Location.
$nextLoc = "Main";
}For example, the action variable 'profile' calls a file called ttse_erv_profileform.inc. And 'profile_entry' calls ttse_erv_profileentry.inc and so on.
Any insight is greatly appreciated.
I should add that this is PHP 4.33, an Oracle 10g database, on a RedHat Linux 3.0AS, and an Apache 1.3.28 web server.
Thanks,
new_developer
feyd | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]