Subject: | Hi, I started using your class... |
Summary: | Package rating comment |
Messages: | 5 |
Author: | Kepler Gelotte |
Date: | 2008-02-24 07:32:57 |
Update: | 2008-12-31 17:17:31 |
|
|
|
Kepler Gelotte rated this package as follows:
Utility: | Good |
Consistency: | Good |
Examples: | Good |
Unit tests: | Good |
|
Kepler Gelotte - 2008-02-24 07:32:58
Hi, I started using your class instead of Snoopy in my library which acts like a portal. I made a couple of changes to support allowing posting of arrays and a couple other minor issues. I will send you my version if you are intereted. My only complaint about your class is that you bind variables in the function declaration instead of when you pass variables through the function call. This makes debugging difficult and I'm not sure that is supported in PHP5. Other than that, great job and thanks a lot!
Regards,
Kepler
Manuel Lemos - 2008-02-24 08:00:13 - In reply to message 1 from Kepler Gelotte
Thank you for your support.
I am not sure what you mean by the changes you made regarding "posting arrays" and "bind variables in the function declaration". If you explain more clearly what you mean by that, maybe it is something worth improving.
Entero Gusten - 2008-12-29 15:47:27 - In reply to message 1 from Kepler Gelotte
Hi,
can you explain how to modify the script to post arrays?
I try to post an array to emulate multiple checkbox choice when html script looks like this:
<input type="checkbox" name="category[]" value="1"/>Category 1
<input type="checkbox" name="category[]" value="2"/>Category 2
<input type="checkbox" name="category[]" value="3"/>Category 3
<input type="checkbox" name="category[]" value="4"/>Category 4
I need to send values:
$arguments["PostValues"]=array(
"somefield"=>"Upload forms",
"category" => array(1,3)
);
Any clue will be helpful.
Manuel Lemos - 2008-12-30 01:23:48 - In reply to message 3 from Entero Gusten
If you set the PostValues argument with the category entry set to an array as you did, it will sent the request as if you set category parameter twice with the values set to 1 and 3.
To do what you need you must set the PostValues entry "category[]" this way:
$arguments["PostValues"]=array(
"somefield"=>"Upload forms",
"category[]" => array(1,3)
);
Entero Gusten - 2008-12-31 17:17:31 - In reply to message 4 from Manuel Lemos
Great :) Thank you for your support. Great class - very useful.
|