if you are using a high version of php (say 4.1.1) you will need to reference variables in the url by $_GET['me'] and post variables by $_POST['action']
-----Original Message----- From: pilotdave [mailto:[EMAIL PROTECTED]] Sent: 04 March 2002 18:54 To: [EMAIL PROTECTED] Subject: Re: [PHP-WIN] cannot write to mySQL database Ok, making progress. My updated code is below. with full error checking, i get no errors on loading the page. I do get an error when i attempt to submit. It does not recognize $action as being a variable: [Mon Mar 04 13:46:33 2002] [error] PHP Warning: Undefined variable: action in c:\homepage\phptest\dataform2.php on line 10 This seems to be the root of the problem. If I enter a URL as http:/..../whatever.php?me=hello, shouldnt $me be a variable equal to the string "hello" in whatever.php? I cant get this to work. There seems to be some problem with my settings such that it doesnt recognize variables that arent defined explicitely (like $me="hello" in the code). Could there be some setting in an ini file or config file for apache that needs to be changed? ALMOST THERE (i think!). Dave -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php ***************************************************************** Calling abroad? Save your precious pounds with 1st Contact Telecom! http://www.1stcontact.co.uk ***************************************************************** This is a confidential message for the named persons only. It may contain confidential, proprietary or legally privileged information. If you receive this message in error please notify the sender and immediately delete the message. You must not, directly or indirectly, use, disclose, distribute, print or copy any part of this message if you are not the intended recipient. All views expressed in this message are those of the individual sender and do not necessarily reflect those of 1st Contact Group or any of its subsidiaries. -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php