|
Posted by Jeppe Uhd on 08/16/05 09:18
imemail2@gmail.com wrote:
> Hi everyone, im starting out in PHP and kinda pieced this together,
> this form apparently worked on another server, but is not working on
> the new one. Running PHP 5 on os X. The form mails ok, but the fields
> are all blank. The Apache error log gives this:
register_globals On/Off
The old server probably had it on, and the new one off
2 ways to solve the problem:
1 (the preferred) change all the variables used to
$_REQUEST["variable_name"]
2 (the old way) change register_globals to On (in php.ini)
The old way can have some securityproblems if you don't "think before you
code"...
> [error] PHP Notice: Undefined variable: yesviolation in
> application.php on line 12
> [Sun Aug 14 22:41:02 2005] [error] PHP Notice: Undefined variable:
> noviolation in application.php on line 12
--
MVH Jeppe Uhd - NX http://nx.dk
Webhosting for nψrder og andet godtfolk
Navigation:
[Reply to this message]
|