Re: $_POST vars
| From: | Adam Richardson | Date: | Wed, 13 Apr 2011 17:55:28 +0000 |
| Subject: | Re: $_POST vars | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-312374@lists.php.net to get a copy of this message | ||
On Wed, Apr 13, 2011 at 1:49 PM, Jim Giner <jim.giner@albanyhandball.com>wrote:
> Can one create a set of $_POST vars within a script or is that not do-able?
> My display portion of my script utilizes the POST array to supply values to
> my input screen - this works well for the first display of an empty screen,
> and any following re-displays if there's an error in the user's input. But
> I want to use this same script/screen to display the results of a query
> when
> the user wants to update an existing record.
>
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
I'm not sure what you're asking, but you can set the values of the POST
array directly within a script, for instance:
$_POST['new_key'] = 'new_value';
Adam
--
Nephtali: A simple, flexible, fast, and security-focused PHP framework
http://nephtaliproject.com