[PHP] Checkbox Question
Hi all, Im using php's cURL module to submit a form on a remote site. All is *good* so far but i dont know what parameter to pass to ensure that this checkbox is 'checked': INPUT TYPE=checkbox NAME=a VALUE=on so, what is it? a=what? Thanks very much! -- Nick W -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Checkbox Question
Hi Nick, Nick Wilson wrote: Hi all, [...] INPUT TYPE=checkbox NAME=a VALUE=on so, what is it? a=what? [...] if a was checked a=on is posted (or 'get'ed) if not checked a isn't set. Thanks very much! You're welcome Stephan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Checkbox Question
Stephan Fiedler wrote: Hi Nick, Nick Wilson wrote: Hi all, [...] INPUT TYPE=checkbox NAME=a VALUE=on so, what is it? a=what? [...] if a was checked a=on is posted (or 'get'ed) if not checked a isn't set. Thanks very much! You're welcome Stephan that actually depends on the browser. Mayne browsers send a= when it's not checked (meaning an EMPTY value) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Checkbox Question
* Thus wrote Nick Wilson: Hi all, Im using php's cURL module to submit a form on a remote site. All is *good* so far but i dont know what parameter to pass to ensure that this checkbox is 'checked': INPUT TYPE=checkbox NAME=a VALUE=on TIAS. a=value|on) which ever the browser seems appropriate. Curt -- First, let me assure you that this is not one of those shady pyramid schemes you've been hearing about. No, sir. Our model is the trapezoid! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] checkbox question
If you cannot use square brackets, get the values yourself from $_SERVER['QUERY_STRING'] Alex Shi wrote: How to ontain data from a group of checkbox using same name? For example, in a form there're 6 checkboxes and all named as Interesting_Area. I know if put a pairs of square brackets at the end of the name then in php all the values of them can be ontained. However, for some reason I cannot use square brackets. Please help me out if anyone know how to do the trick. THanks! Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] checkbox question
Thanks for your reply! I tested $_SERVER['QUERY_STRING']. Seems like it only return the string for get method but not for post. Any idea? Alex Marek Kilimajer [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... If you cannot use square brackets, get the values yourself from $_SERVER['QUERY_STRING'] Alex Shi wrote: How to ontain data from a group of checkbox using same name? For example, in a form there're 6 checkboxes and all named as Interesting_Area. I know if put a pairs of square brackets at the end of the name then in php all the values of them can be ontained. However, for some reason I cannot use square brackets. Please help me out if anyone know how to do the trick. THanks! Alex -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] checkbox question
How to ontain data from a group of checkbox using same name? For example, in a form there're 6 checkboxes and all named as Interesting_Area. I know if put a pairs of square brackets at the end of the name then in php all the values of them can be ontained. However, for some reason I cannot use square brackets. Please help me out if anyone know how to do the trick. THanks! Alex -- --- TrafficBuilder Network: http://www.bestadv.net/index.cfm?ref=7029 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Checkbox question
I have a page with a checkbox, when i submit to the next page the variable $whatever (the checkboxes name.) will be On if its checked, and it will be undefined if its not checked. Shouldn't it be a empty string? and not undefined? /José -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Checkbox question
On Friday 16 August 2002 17:54, José Jeria wrote: I have a page with a checkbox, when i submit to the next page the variable $whatever (the checkboxes name.) will be On if its checked, and it will be undefined if its not checked. Shouldn't it be a empty string? and not undefined? That is how it works. If it's not checked it does not get defined. -- Jason Wong - Gremlins Associates - www.gremlins.com.hk Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development * /* We cannot command nature except by obeying her. -- Sir Francis Bacon */ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] Checkbox question
Hmmm, then the book Beginning PHP from Wrox is wrong... /J Jason Wong wrote: On Friday 16 August 2002 17:54, José Jeria wrote: I have a page with a checkbox, when i submit to the next page the variable $whatever (the checkboxes name.) will be On if its checked, and it will be undefined if its not checked. Shouldn't it be a empty string? and not undefined? That is how it works. If it's not checked it does not get defined. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php