Im using HTTP::Request::Form to submit to a cgi link online.
Its going well, but I've come up against multiple checkboxes with the same name unfortunately:
According to HTTP::Request::Form, the only value sent to the cgi link for 'editions' is the last one 'H' even if they were all checked. This is confirmed in a dump of the form:<div class="database_category">Citation Databases:</div> <div class="edition"> <input type="checkbox" name="editions" checked value="D"> <a href="" onClick="return show_help( 'http://wos4.isiknowledge.com:80/LinkOut.cgi?dest=help/h_database.htm% +23sci&origin=http%3A//wos4.isiknowledge.com/CIW.cgi%3FSID%3DQVR5kArh@ +WcAAGvMDrs%26Func%3DGoBack');"> <img class="binfo" src="Images/info.gif" name="Information" alt="Information" title="Information" /> </a> Science Citation Index Expanded (SCI-EXPANDED)--1955-present </div> <div class="edition"> <input type="checkbox" name="editions" checked value="S"> <a href="" onClick="return show_help('http://wos4.isiknowledge.com: +80/LinkOut.cgi?dest=help/h_database.htm%23ssci&origin=http%3A//wos4.i +siknowledge.com/CIW.cgi%3FSID%3DQVR5kArh@WcAAGvMDrs%26Func%3DGoBack') +;"> <img class="binfo" src="Images/info.gif" name="Information" alt="Information" title="Information" /> </a> Social Sciences Citation Index (SSCI)--1956-present </div> <div class="edition"> <input type="checkbox" name="editions" checked value="H"> <a href="" onClick="return show_help('http://wos4.isiknowledge.com: +80/LinkOut.cgi?dest=help/h_database.htm%23ahci&origin=http%3A//wos4.i +siknowledge.com/CIW.cgi%3FSID%3DQVR5kArh@WcAAGvMDrs%26Func%3DGoBack') +;"> <img class="binfo" src="Images/info.gif" name="Information" alt="Information" title="Information" /> </a> Arts & Humanities Citation Index (A&HCI)--1975-present </div>
It was to my delight, that I realised that the checkboxes do have multiple values, much like radio buttons, but I can't access these different values via HTTP::Request::FormFIELD{input/checkbox} editions=H FIELD{input/checkbox} editions=H FIELD{input/checkbox} editions=H
So I want to fall back onto HTTP::Request::Common, which will enable me to submit any value to any field name, but my question is
What value should I send, if I wanted to indicate all the checkboxes were checked?
Should I just send 'DAH', and expect the cgi script to pasrse for all three values, or do I need a seperator?
Any help would be appreciated
Thanks
Sam
Updated Steve_p - Edited code so it wasn't all on one line
In reply to Checkboxes with the same name by seaver
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |