RE: [PHP] HTTP_POST_VARS, forms, and not allowing modifications.

From: Date: Sun, 25 Nov 2001 22:15:21 +0000
Subject: RE: [PHP] HTTP_POST_VARS, forms, and not allowing modifications.
Groups: php.general 
Request: Send a blank email to php-general+get-75675@lists.php.net to get a copy of this message
you said you tried a text field, have you tried a hidden field? does it HAVE to be in $HTTP_POST_VARS ?? can you append it to whatever link you have using "?unique_id=$id" or something similar? Martin T -----Original Message----- From: C. Bensend [mailto:benny@bennyvision.com] Sent: Monday, November 26, 2001 8:18 AM To: php-general@lists.php.net Subject: [PHP] HTTP_POST_VARS, forms, and not allowing modifications. Hey folks, I am working on a database-driven site, and have run into a problem. It's not a problem with any existing code, more of a "how the heck do I do this" sort of thing. I have a table, that is generated from a database query: +-----------+-----------+----------------+-------------+ | unique_id | some_text | some_more_text | edit button | +-----------+-----------+----------------+-------------+ The unique_id is an integer, and the user can NOT be allowed to modify it. However, I need to pass that value to the php script that's the ACTION for the "edit button". register_globals is not allowed, so somehow I need to get the value of unique_id into the HTTP_POST_VARS array. I tried: $HTTP_POST_VARS['unique_id'] = id; but it was ignored. I know I can make the unique_id a TEXT input area, but then it can be modified. I did some searching around for more information about what can and can not be done with HTTP_POST_VARS, but I didn't find anything helpful (I could have been looking in the wrong place, too). Anyone have some Wise Tips(tm) for me? Any help would be greatly appreciated. :) Benny ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "The onions are irritating my buttocks." - Sluggy Freelance 10-12-1998 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#75675) next »