Re: Simple PHP/MySQL Question

by "Rajnish Bhaskar" <r.bhaskar(at)compserv.gla.ac.uk>

 Date:  Wed, 06 Nov 2002 10:40:05 -0000
 To:  Seth Wilschutz <swhwg(at)neo.rr.com>
 Cc:  hwg-languages(at)hwg.org
 In-Reply-To:  uc
  todo: View Thread, Original
Hi Seth,

> I've been playing with PHP scripts that access a temporary MySQL
> database.  I'm trying to insert records into the database via an HTML
> form.  The HTML form is as follows:

<<snip>>

Are you sure that you've got register_globals turned on in your 
php.ini file?  If not, then you'll have to use $_POST['submit'] and 
similarly for your other variables.  Note, $_POST[] was introduced in 
PHP 4.1.0, use $HTTP_POST_VARS[] for earlier versions.

See http://www.php.net/manual/en/printwn/reserved.variables.php for 
more details.

HTH,
Raj.
-- 
Rajnish Bhaskar
r.bhaskar(at)compserv.gla.ac.uk, http://lordofthemoon.com
IT Education Unit, University of Glasgow
http://www.iteu.gla.ac.uk/
--
As far as Death was aware, the sole reason for any human association 
with
pigs and lambs was as a prelude to sausages and chops.  Quite why 
they should
dress up for children's wallpaper as well was a mystery.
	-- (Terry Pratchett, Hogfather)

HWG: hwg-languages mailing list archives, maintained by Webmasters @ IWA

This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.