Re: Form Variables not getting passed || Apache, MySql, Win 2k Setup

From: Date: Thu, 30 Jan 2003 02:00:11 +0000
Subject: Re: Form Variables not getting passed || Apache, MySql, Win 2k Setup
References: 1 2 3 4  Groups: php.general 
Request: Send a blank email to php-general+get-133567@lists.php.net to get a copy of this message
Sure. In the code below, class_type is passed in the query_string (e.g. index.php?section_id=12&page_type=class_submit&class_type=apartments) Also, below sql values are sent via a post. ************ Code Snippet *************** switch($_REQUEST['class_type']) { case 'apartments'; dbConnect("INSERT into c_apart_data (submit_date, apart_type_id, location, bedrooms, rent, heat, lease, deposit, pets, phone, email, blurb) Values('$submit_date', '$apart_type_id', '$location', '$bedrooms', '$rent', '$heat', '$lease', '$deposit', '$pets', '$phone', '$email', '$blurb')"); break; more code................ ********************************************** Let me know if you need more info, --Noah ----- Original Message ----- From: Leif K-Brooks To: Noah Cc: php-general@lists.php.net Sent: Wednesday, January 29, 2003 2:19 PM Subject: Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup Mind giving a code snippet? Noah wrote: Thanks for the pleasant acronym, Leif. However, setting register_globals on or off makes no difference. The variables are still not getting evaluated........ BTW works fine on my laptop (Apache, MySql, Linux) --Noah ----- Original Message ----- From: "Leif K-Brooks" mailto:<eurleif@buyer-brokerage.com To: "CF High" mailto:<noah@newminddesign.com; mailto:<php-general@lists.php.net Sent: Wednesday, January 29, 2003 1:38 PM Subject: Re: [PHP] Form Variables not getting passed || Apache, MySql, Win 2k Setup RTFM! Your problem is register_globals. CF High wrote: Hey all. This driving me nuts: I've got Apache, MySql, and Windows 2000 running on my local machine. In order to get passed php variables evaluated, whether via a url query string, or through a form post, I have to use this syntax: $_REQUEST[$my_passed_variable] I have no such problem with our hosting company servers; i.e. I can access query_string and form posted variables as $my_passed_variable. What is going on here? Is there something in php.ini that needs to be adjusted? Any help whatsoever here is much appreciated, --Noah -- -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law. -- The above message is encrypted with double rot13 encoding. Any unauthorized attempt to decrypt it will be prosecuted to the full extent of the law.

« previous php.general (#133567) next »