ctkr 0 Newbie Poster

HELP!

I am just starting the wonderful world of form development and data handling and need some assistance.

I am working on the .txt file that the form will send to various emails accounts. The form asks the user to check boxes to select which of the 700+ dance routines they would like see programmed at the next convention.

I would like the email to send the user & the program chair an email with the listing of only the routines they check. The emails arrive with space (or a return or other character) for every single item, in addition to the values (names of the routines) of those chosen. I would like to find some way to eliminate the extra space (returns or other characters) sent in the email from those boxes not checked on the form.

My current code is below the line. My area of concern is the section listing the numbers in [ ]. The following code returns a list of the routines checked in addition to a : (colon) for every routine that is on the vote list.

Any assistance would be greatly appreciated.

Thanks,
ctkr :confused:

-------------------------------------------------------------------------------
To: [email2]
From: [email3]
Subject: Adv Hall Vote List backup - from [r_visitor_name]

Terri here is the Advance Hall Vote List from:
------------------------------------
Name: [r_visitor_name]
Contact eMail: [email3]
Time and Date of Submission: [%DATE_GMT] Pacific Time
Unique Reference Number: [unique_reference_number]
------------------------------------

[001]:[004]:[005]:[007]:[009]:[010]:[012]:[014]:[015]:[016]:[017]:[018]:[019]:[020]:[021]:[023]:[024]

[026]:[028]:[029]:[030]:[031]:[032]:[033]:[034]:[036]:[037]:[038]:[039]:[040]:[041]:[045]:[046]:[047]

[048]:[049]:[050]:[051]:[053]:[055]:[056]:[057]:[059]:[060]:[061]:[063]:[069]:[070]:[071]:[072]:[073]

[076]:[077]:[078]:[080]:[081]:[082]:[084]:[085]:[086]:[087]:[089]:[090]:[092]:[093]:[095]:[096]:[098]

[100]:[101]:[102]:[103]:[106]:[107]:[108]:[109]:[110]:[112]:[113]:[114]:[116]:[117]:[118]:[120]:[121]

[122]:[123]:[125]:[127]:[128]:[130]:[131]:[132]:[134]:[137]:[138]:[141]:[142]:[143]:[144]:[145]:[146]

[147]:[148]:[149]:[151]:[152]:[153]:[155]:[157]:[159]:[162]:[163]:[166]:[167]:[168]:[170]:[172]:[175]

[178]:[179]:[180]:[182]:[184]:[185]:[186]:[188]:[190]:[191]:[192]:[193]:[198]:[199]:[200]:[202]:[203]

[204]:[205]:[206]:[208]:[212]:[217]:[219]:[220]:[221]:[222]:[223]:[224]:[225]:[226]:[227]:[228]:[231]

[236]:[237]:[239]:[240]:[241]:[242]:[246]:[248]:[250]:[251]:[252]:[253]:[254]:[257]:[258]:[259]:[262]

[263]:[264]:[265]:[267]:[269]:[270]:[271]:[273]:[280]:[281]:[283]:[285]:[287]:[288]:[292]:[293]:[295]

[296]:[297]:[298]:[299]:[301]:[302]:[304]:[305]:[307]:[308]:[309]:[310]:[313]:[314]:[315]:[316]:[317]

[318]:[319]:[321]:[323]:[324]:[325]:[326]:[327]:[330]:[331]:[332]:[333]:[334]:[336]:[338]:[340]:[342]

[343]:[344]:[345]:[346]:[347]:[349]:[350]:[352]:[353]:[354]:[356]:[357]:[361]:[362]:[363]:[364]:[366]

[367]:[368]:[371]:[373]:[374]:[376]:[377]:[378]:[379]:[380]:[381]:[382]:[383]:[384]:[385]:[386]:[387]

[390]:[391]:[392]:[393]:[394]:[395]:[396]:[398]:[400]:[401]:[402]:[405]:[407]

------------------------------------
Additional Routines or Comments:
[visitor_comments]
------------------------------------
The form submited on [%HTTP_REFERER]
IP address is [%REMOTE_ADDR]
------------------------------------

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.