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>


Reply via email to