View previous topic :: View next topic |
Author |
Message |
Hipp -
Joined: 18 Apr 2006 Posts: 5
|
Posted: Thu Apr 20, 2006 4:44 pm Post subject: Parameter error |
|
|
Hi,
perhapps i found an error under x2 or doing something wrong.
I have integrated php as shown in the manual.
I call a php-file with a parameter
<a href="../myfile.php?fct=check'> .
The variable fct in the php-script isn't defined. After i inserted the lines
$tmpfct = $_GET['fct'];
$fct = $tmpfct;
it works fine. Under the apache server of my provider i haven't to insert these two lines. :?: _________________ Best regards
Hipp |
|
Back to top |
|
 |
olly86 -
Joined: 25 Apr 2003 Posts: 993 Location: Wiltshire, UK
|
Posted: Thu Apr 20, 2006 5:04 pm Post subject: |
|
|
I think you're provider must be generating these variables automatically. However, the standard behaver of php is to not create these variables, but to access it through $_GET['fct'].
If you don't want to add those lines to your code, instead of calling the variables using $fct or $tempfct, you can directly access the information through $_GET['fct']. This is not a bug but a slightly different configuration. :) _________________ Olly |
|
Back to top |
|
 |
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
|
Back to top |
|
 |
|