Re: [PHP] cool PHP sites
On Tue, 26 Feb 2002 10:07:55 -0900 Chris Lott [EMAIL PROTECTED] wrote: It strikes me that my students really don't have a good grasp of what PHP is capable of doing, since they are getting bogged down in learning the minutiae of the language itself. So (quickly if possible-- I'd like to demo some sites tonight) what are some examples of cool and publically accessible sites that use PHP? I'm looking for sites that demonstrate what PHP can do, examples of big name sites using PHP, etc. I can explain how the back end technology is working if I have some good sites to use as a framework. I'd like to keep them excited about the potential, you know? Hi Chris, To mention some, freshmeat, and easyDNS. You can try the case studies on: http://www.zend.com/zend/cs/ --bk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Fetching the values from previous page
Hi all, I have a page that post a lot of variables to the next page. It looks like: form action=next_page.php input type=text name=f_text1 input type=text name=f_text2 select name=f_multiple1[] multiple size=6 option value=1one option value=2two option value=3three /select input type=submit /form On next.php I can access all the values through: $f_text1, $f_text2, and an array $f_multiple1. My question is, how can I pack all of these variables from previous page _without_knowing_ the variables name? I mean, I know I can write: $array = array(text1 = $f_text1, text2 = $f_text2, multiple1 = array($multiple1)); But that is not what I want, it is more like: GetAllFromPrevious(); or in Perl: %params = $q-Vars; And poof, all the values from previous will be inserted into an array. Thanks, --bk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Fetching the values from previous page
On Mon, 25 Feb 2002 10:04:07 -0800 Steven Walker [EMAIL PROTECTED] wrote: Dear Batara, There are global variables that serve this purpose. You must have register_globals turned on: http://www.php.net/manual/en/language.variables.predefined.php $_POST An associative array of variables passed to the current script via the HTTP POST method. Automatically global in any scope. Introduced in PHP 4.1.0. Steven, Thank you for the URL, since I am on 4.0.6 I think I will use: $HTTP_POST_VARS An associative array of variables passed to the current script via the HTTP POST method. $HTTP_GET_VARS An associative array of variables passed to the current script via the HTTP GET method. --bk -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php