Re: php 4.0.5 to php 4.2.2
| From: | Chris Mach | Date: | Tue, 22 Apr 2003 20:15:21 +0000 |
| Subject: | Re: php 4.0.5 to php 4.2.2 | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-27278@lists.php.net to get a copy of this message | ||
ok, let me see if i understand what your saying....
so for $_POST['copy'] I have to go....
$myrow['copy'] = $_POST['copy']
?
"Matt Schroebel" <MSchroebel@hsus.org> wrote in message
news:D4DB668A680B2549AE977FB0B193E2E86DD7D7@email.hsus.org...
> -----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.