RE: [PHP-DB] php 4.0.5 to php 4.2.2

From: Date: Tue, 22 Apr 2003 19:28:31 +0000
Subject: RE: [PHP-DB] php 4.0.5 to php 4.2.2
Groups: php.db 
Request: Send a blank email to php-db+get-27274@lists.php.net to get a copy of this message
> -----Original Message----- > From: Chris Mach [mailto:cjmach@learn.senecac.on.ca] > Sent: Tuesday, April 22, 2003 3:24 PM > To: php-db@lists.php.net > Subject: Re: [PHP-DB] php 4.0.5 to php 4.2.2 > > > It's not my server so I don't think i have access to change > the php.ini > file. > > I tried the $_POST["title"] and $HTTP_POST_VARS["title"] and > it worked, > except now it replaces my previous data instead of adding a > new record. > > Is there a way that i can use $_POST in combination with my > array variable > $myrow? > > > http://matrix.senecac.on.ca/~cjmach/test.php You have to find all references to globals that were posted, and change them. Such as $_POST['submit'] and $_POST['copy']. Also you have hard coded values on the values on the insert that you might want to change to something more meaningful.

« previous php.db (#27274) next »