PHP help
PHP help
Out of context: Reply #7
- Started
- Last post
- 27 Responses
- Anarchitect0
//instead of
include('page.php?var=val');//use
$var = val;include('page.php');
also the problem you might have been experienced is the change in recent versions of php regarding global variables: for security reasons they're not accessible immediatelly after form posts and/or url query strings.
you should add this to the beggining of your script to retrieve all $_GET/$_POST vars:
foreach ($_REQUEST as $key => $value) $$key = $value;