Share

Snoopy

Tracker: Feature Requests

5 Support for Checkbox arrays in $submit_vars - ID: 2847885
Last Update: Tracker Item Submitted ( dansalmo )

I have been trying to use Snoopy to submit a form that uses check boxes. I
have found that in the target page, the $_Post data for a form with check
boxes has a part that is submitted as an array with all of the items that
have their boxes checked. I have tried to include an array in
$submit_vars, but it does not seem to form the $postdata in Snoopy
properly.

With a $submit_vars ["comments"] = array ("pet" => "dog");

Or $submit_vars ["comments"][“pet”] = "dog";


The resulting $postdata contained comments[]=dog& which appears to
have lost the array key.

I am not sure what it should look like when an array is being passed but I
was able to get the form to work by doing the following:

$submit_vars ["comments[pet]”] = "dog";

However, the $postdata contained comments%5Bpet%5D=dog&

This does not seem pretty but it did work to submit the check box form.


Dan Salmonsen ( dansalmo ) - 2009-08-31 17:50

5

Open

None

Nobody/Anonymous

None

None

Public


Comments




Log in to comment.

No follow-up comments have been posted.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.