#25214 [Opn->Bgs]: import_request_variables "empty"

From: Date: Mon, 25 Aug 2003 02:55:52 +0000
Subject: #25214 [Opn->Bgs]: import_request_variables "empty"
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-46562@lists.php.net to get a copy of this message
ID: 25214 Updated by: sniper@php.net Reported By: spin9 at terra dot com dot br -Status: Open +Status: Bogus Bug Type: *General Issues Operating System: win98/xp PHP Version: 4.3.2 New Comment: Please ask support questions like that elsewhere, this is not some newbie support forum. (this is NOT any bug) Previous Comments: ------------------------------------------------------------------------ [2003-08-24 21:53:10] spin9 at terra dot com dot br Ok, I tryed the same example and it worked fine to me now. But when I put the function import_request_variables inside another function it doesn't get the values back. Maybe need I use some "$globals" to access it? Thank you. ------------------------------------------------------------------------ [2003-08-24 21:49:59] sniper@php.net You're just doing something wrong. This works just fine: test.php: -----------------------8<---------------------- <form action="test.php" method="post"> <input type=text name="plain" value="foo"> <input type=submit><br> </form> <?php import_request_variables("P", "frm_"); if (isset($frm_plain)) { echo "\$frm_plain is set to '$frm_plain'"; } else { echo "\$frm_plain is not set!"; } ?> -----------------------8<---------------------- Please try the above example. It works just fine for me.. ------------------------------------------------------------------------ [2003-08-24 21:18:14] spin9 at terra dot com dot br I still unable to get import_request_variables function working properly after install of php stable version. I do one print_r($_POST); and every form name/value is there. I really don't know what is wrong. my function: function foo() { import_request_variables("P", "frm_"); echo $frm_nomeField; } but a // print_r($_POST); shows nomeField any suggestion? thanks. ------------------------------------------------------------------------ [2003-08-22 19:05:22] sniper@php.net Please try using this CVS snapshot: http://snaps.php.net/php4-STABLE-latest.tar.gz For Windows: http://snaps.php.net/win32/php4-win32-STABLE-latest.zip ------------------------------------------------------------------------ [2003-08-22 17:50:20] spin9 at terra dot com dot br nomeField = nameField at the source code, I made a mistake only here not in the source code. Thanks. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/25214 -- Edit this bug report at http://bugs.php.net/?id=25214&edit=1

« previous php.bugs (#46562) next »