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: [EMAIL PROTECTED]
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:<[EMAIL PROTECTED]
To: "CF High" mailto:<[EMAIL PROTECTED]; mailto:<[EMAIL PROTECTED]
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.