[PHP] Re: [PHP-WIN] Localhost not working with cookies

2005-04-17 Thread Tom Rawson
On 18 Apr 2005 Proudly Pinoy wrote: > I've read from php.net/setcookie and codecomments.com that using > localhost won't work with cookies and neither are IP addresses. So > how do I test cookies on local system? Hmmm, this works just fine for me -- I do it all the time. I tend to do it with a

[PHP] Selectively Extract Sub-Array from an Array

2005-04-13 Thread Tom Rawson
On PHP 4.3.x ... (not using PHP 5) Say I have two arrays, the first has keys 'key1' ... 'key20'. The second has some other keys with different names (i.e. they do not overlap those in the first array). I want to add certain elements from array1 to array2. I can do it like this: $arr

[PHP] Session Vars and Performance

2005-02-14 Thread Tom Rawson
I have a multi-page form which I build up and store in session variables. The data saved includes all an internal list of items on the form (derived from a database table), all the form field specs (derived from the internal item list), the data for the fields (from another table), default dat

[PHP] Avoiding NOTICEs on Array References

2005-01-26 Thread Tom Rawson
I have many places where I use references like this: if ($fields['flags']['someflag']) ... or perhaps if ($_POST['checkboxfieldname']) ... If there is no value for 'someflag', or if the check box was not checked -- both of which are often the case -- these generate errors at l

[PHP] Creating Session Variables

2003-04-03 Thread Tom Rawson
can't quite imagine this) current local scope? Thanks, -- Tom Rawson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Removing Risky Characters

2003-03-22 Thread Tom Rawson
as quotes. ------ Tom Rawson -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php