Hey all, got it fixed ........ all I needed was an ORDER BY id ASC clause on
my SQL - sorted.
G :)
From: "Graeme McLaren" <[EMAIL PROTECTED]>
To: beginners@perl.org
Subject: Checkbox form processing problem
Date: Tue, 06 Jun 2006 09:23:48 +0100
MIME-Version: 1.0
X-Originating-IP: [62.254.183.162]
X-Originating-Email: [EMAIL PROTECTED]
X-Sender: [EMAIL PROTECTED]
Received: from lists.develooper.com ([63.251.223.186]) by
bay0-mc4-f11.bay0.hotmail.com with Microsoft SMTPSVC(6.0.3790.1830); Tue, 6
Jun 2006 01:25:31 -0700
Received: (qmail 14542 invoked by uid 514); 6 Jun 2006 08:24:28 -0000
Received: (qmail 14533 invoked from network); 6 Jun 2006 08:24:27 -0000
Received: from x1a.develooper.com (HELO x1.develooper.com) (216.52.237.111)
by lists.develooper.com with SMTP; 6 Jun 2006 08:24:27 -0000
Received: (qmail 25537 invoked by uid 225); 6 Jun 2006 08:24:27 -0000
Received: (qmail 25533 invoked by alias); 6 Jun 2006 08:24:27 -0000
Received: pass (x1.develooper.com: domain of [EMAIL PROTECTED]
designates 64.4.56.39 as permitted sender)
Received: from bay101-f29.bay101.hotmail.com (HELO hotmail.com)
(64.4.56.39) by la.mx.develooper.com (qpsmtpd/0.28) with ESMTP; Tue, 06
Jun 2006 01:23:59 -0700
Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC;
Tue, 6 Jun 2006 01:23:54 -0700
Received: from 64.4.56.200 by by101fd.bay101.hotmail.msn.com with HTTP;Tue,
06 Jun 2006 08:23:48 GMT
X-Message-Info: LsUYwwHHNt3660MmjhEvYg2f34OAemlK+3Wz9fWrJ/U=
Mailing-List: contact [EMAIL PROTECTED]; run by ezmlm
Precedence: bulk
List-Post: <mailto:beginners@perl.org>
List-Help: <mailto:[EMAIL PROTECTED]>
List-Unsubscribe: <mailto:[EMAIL PROTECTED]>
List-Subscribe: <mailto:[EMAIL PROTECTED]>
List-Id: <beginners.perl.org>
Delivered-To: mailing list beginners@perl.org
Delivered-To: beginners@perl.org
X-Spam-Status: No, hits=-0.7
required=8.0tests=BAYES_20,MSGID_FROM_MTA_HEADER,SPF_HELO_PASS,SPF_PASS
X-Spam-Check-By: la.mx.develooper.com
X-OriginalArrivalTime: 06 Jun 2006 08:23:54.0009 (UTC)
FILETIME=[8C39E890:01C68942]
Return-Path: [EMAIL PROTECTED]
Hi all, glad you seemed to like my "Public Sub House" routine - yes perhaps
VB code ain't the best for a perl mailing list - hmmm. I got that port
script working anyway, another pain in the ass job done.
I was creating a checkbox form yesterday:
<form action="/em/admin/list_teams.pl">
<input type="checkbox" value="test1" name="team_name_0" > bla1 <br />
<input type="checkbox" value="2547c17f-f831-5e0f-5351-443100357f2d"
name="team_name_1" checked> Newcastle <br />
<input type="checkbox" value="test2" name="team_name_2" checked> bla2 <br
/>
<input type="hidden" name="location_id" value="1085">
<input type="hidden" name="myaction" value="show_teams">
<input type="submit" name="submit" value="submit">
</form>
It works but unfortunately it loses the order when checking one of the
checkboxes. Can anyone suggest a way to generate a checkbox form and when
updating the values it keeps the order?
When I say "loses the order" I mean, currently the order is:
bla1
Newcastle
bla2
updating the values the order could be:
Newcastle
bla1
bla2
Any sample code would be helpful.
Cheers,
G :)
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>