[PHP] Q: How to get the value of a checkbox of which name without '[]'?

2003-08-18 Thread Dallas Thunder
Consider the following form in a HTML file: ... input type=checkbox name=box value=1 input type=checkbox name=box value=2 input type=checkbox name=box value=3 input type=checkbox name=box value=4 ... Now I'm posting this form into a PHP script. The problem is I can't change that HTML file.

[PHP] Re: Session 4.2.2

2002-08-29 Thread Dallas Thunder
If you encounter any problem with session variables, it may not caused by session. An important change between 4.2.0 or above and versions below is that the 'register_globals' directive will be set Off by default in 'php.ini' file. So you can't access session variables (e.g. $var) directly,

[PHP] Re: Reading from a file using fgets()

2002-08-29 Thread Dallas Thunder
Well, this is exactly what function file() does. David Christensen [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... When PHP reads from a file using fgets(), does it do it in order? Meaning, when reading STDIN from a file, does it read line1, then line2, line3,

[PHP] Re: Session 4.2.2

2002-08-29 Thread Dallas Thunder
Just edit your 'php.ini' file, if 'register_globals = Off', then set it to On. It will solve a lot of problems if you are learning PHP from examples. Breno Cardoso Perucchi [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... Hi, Do you have an example? Thanks.

[PHP] Re: CHM 8th sample is out

2002-08-28 Thread Dallas Thunder
Great! The sample code in the manual looks much better. But I feel the function definition is not so visible. I almost didn't find it when I first look at the manual. I think add a blank line before and after function definition or use a special color could be better. Gabor Hojtsy [EMAIL

[PHP] Re: known bugs in current CHM, contribution appreciated!

2002-08-26 Thread Dallas Thunder
I'm using IE6 under WinXP, I've encountered all the three known bugs in Sample7. The third one is really unacceptable. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How do I customize the User-Agent when opening a remote file?

2002-08-15 Thread Dallas Thunder
How do I customize the User-Agent when using fopen() or file() to open a remote file? PHP use PHP/4.2.3-dev on my system as the User-Agent when I using file() function to retrive a remote file. Howerver, some servers will refuse to serve browsers other than Mozilla compatible and return a 403