My form passes a series of data values as a :: delimited string in a select called 'match':

<select name='match'>
  <option>LastName::FirstName::DoB::etc</option>
  # more combinations

and I want to populate the $c->detach template fields with the selected values. This works if I do:

my ($last_name, $first_name, $dob, $etc)
  = split '::', $c->req->param('match');
        
$c->request->param(last_name => $last_name);
$c->request->param(first_name => $first_name);
$c->request->param(dob => $dob); # etc

and it populates the template with the appropriate values, but it seems a bit messy as I'm attributing values to request parameters that were not actually there in the first place - is there a better way?
--
Richard Jones

**********************************************************************
This message  may  contain  confidential  and  privileged information.
If you are not  the intended  recipient please  accept our  apologies.
Please do not disclose, copy or distribute  information in this e-mail
or take any  action in reliance on its  contents: to do so is strictly
prohibited and may be unlawful. Please inform us that this message has
gone  astray  before  deleting it.  Thank  you for  your co-operation.

NHSmail is used daily by over 100,000 staff in the NHS. Over a million
messages  are sent every day by the system.  To find  out why more and
more NHS personnel are  switching to  this NHS  Connecting  for Health
system please visit www.connectingforhealth.nhs.uk/nhsmail
**********************************************************************


_______________________________________________
List: [email protected]
Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-archive.com/[email protected]/
Dev site: http://dev.catalyst.perl.org/

Reply via email to