how's this for a logic flow:
user enters an address into the form field and submits the
form.
the form;s action page looks up the zip code for the
submitted address,
and if, found, looks up all candidates in your db based on
that zip.
you either output 'sorry, no zip/candidates found' or a form
with a
textarea to enter/edit the message to be sent. in a hidden
field in the
form store the list of candidate ids retrieved from your db.
the user edits the message text and submits the form.
you use the candidate ids from the form;s hidden field to
lookup their
emails and send them the user's message using cfmail.
you can substitute session var for the hidden form field if
you want to.
you can even just store the retrieved zip code in the session
var/hidden
form fields instead of candidates' ids and just do another db
lookup for
candidates' emails based on the zip code after the user
submits the
message to be sent.
form variables (field values) are accessed on the action page
using
#form.fieldname#. i suggest you stick to form variables
instead of url
variables (use method=post instead of get in your forms).
hth
Azadi Saryev
Sabai-dee.com
http://www.sabai-dee.com/