Re: php apache
| From: | John Nichel | Date: | Sat, 19 Oct 2002 02:46:17 +0000 |
| Subject: | Re: php apache | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-120577@lists.php.net to get a copy of this message | ||
The below way will probably fix your problem, but you open yourself up to possible security risks. It's better that you leave "register_globals = Off" in the php.ini file, and change your code. At your work, I guessing that register_globals is on (probably an older version of Php, right?), and at home you probably have a newer version. The proper way to do this would be as follows....
Say your form has a field named "fieldname". At work, you probably reference this on the next page as $fieldname. If globals are off, you will need to reference this variable as $_POST['fieldname'] or $_GET['fieldname'] (depending on the method of the form, post or get). You should change the code at work to reflect this too, and turn register_globals off.
Bob Irwin wrote:
G'day, Have a look at the register_globals = Off in the PHP config. Turn this On and restart apache and away you go. Bob ----- Original Message ----- From: "Edward Peloke" <epeloke@echoman.com> To: <php-general@lists.php.net> Sent: Saturday, October 19, 2002 12:00 PM Subject: [PHP] php apacheI am running php on an apache server running on windows. The scripts run fine at work but when I run them here at home, my forms to not work. They do nothing, they don't send any info to the next page. Is there a setting in php or apache that I need to send to allow forms or allow posting to a page?? Thanks, Eddie -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php Scanned by PeNiCillin http://safe-t-net.pnc.com.au/ Scanned by PeNiCillin http://safe-t-net.pnc.com.au/Scanned by PeNiCillin http://safe-t-net.pnc.com.au/