Email Your Legislator Form: How?

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default Email Your Legislator Form: How?

    I am working on a website and I need to create a way that users can send their
    state legislators a pre-written email message directly from the website.
    Ideally, I'd like for it to work like this... 1) The user clicks an 'Email
    Your Senator' link on the site. 2) The user is automatically taken to the first
    page that contains all the fields were they enter their address. 3) Based on
    the user's unput, their address analyzed, their 9 digit zip code is determined,
    the user's appropriate senatorial district is determined, then the senators
    name and email are determined. 4) The user is then automatically taken to the
    second page that will contain a text box containing the pre-written message
    directed at that individual senator, which the user can modify if desired, and
    then the user can simply click a 'Submit' button sending the message to that
    senator's email address. This may be asking too much but this is really what
    I'd like to do. I'm just confused by all the tutorials and other info on forms
    like this that are out there and can't find anything that deals with my unique
    project. Can anyone help me? I would be REALLY APPRECIATIVE if someone can give
    me a fairly simple expplanation of how to do this, whether it be using
    ColdFusion or even Frontpage or Dreamweaver or any other possible way.

    clayrains Guest

  2. Similar Questions and Discussions

    1. email form
      Hi people Can anyone tell me why my email form will work fine when I preview it seperatly but not when embedded within my site, I mean check out...
    2. PES Email Form
      Does anyone know what's happened to Gregory Peacock? I need to get hold of the PES Email Form - I've stupidly lost my copy of it and I went back to...
    3. Connenting email form to an email account
      :( I am at a mental brickwall. I created a form, created two text fields and a "log in" button. What I want to have happen is when a person goes to...
    4. Form without Email
      I trying to make a form without using the email from the sender, what i need is a script that send the form directly to my email without using the...
    5. Email a form
      I am trying to email information that users enter on my website using a submit button. However, it is not working. Is there a simple way to do...
  3. #2

    Default Re: Email Your Legislator Form: How?

    I am not going to tell you how to do every thing every step of the way but I
    will give you the basics. First off you need a database with a table in it
    that has these columns ID,Zipcode,SenatorName,SenatorEmailAddress You will need
    a page with form fields that will allow for someone to enter their relevant
    information Wrap these form fields in a the <cfform> tags. Then your form
    action= should be your mail page On your mail page Run a query on your
    database table, based upon the form field where people put in their zipcode
    ex.: select * From TABLENAME Where ZipCode = '#FORM.ZipCode# ' Have hidden
    text fields whose default value are any of the information you want to send
    with the email and one text field needs to be the senators email address from
    your query Have your textmessage box set up on this page with the default
    value for your message as te text. Have all of these wrapped in a form field
    and submit button sends them to thank you page. on thank you page use <cfmail>
    tag. Or you can do it all through Java Script. To do this you will need
    Coldfusion though and Dreamweaver really helps too. Wouldn't use Frontpage.
    First off it is a microsoft product and it doesn't play together with
    coldfusion any where as well as dreamweaver.

    brokerandy25 Guest

  4. #3

    Default Re: Email Your Legislator Form: How?

    I am not going to tell you how to do every thing every step of the way but I
    will give you the basics. First off you need a database with a table in it
    that has these columns ID,Zipcode,SenatorName,SenatorEmailAddress You will need
    a page with form fields that will allow for someone to enter their relevant
    information Wrap these form fields in a the <cfform> tags. Then your form
    action= should be your mail page On your mail page Run a query on your
    database table, based upon the form field where people put in their zipcode
    ex.: select * From TABLENAME Where ZipCode = '#FORM.ZipCode# ' Have hidden
    text fields whose default value are any of the information you want to send
    with the email and one text field needs to be the senators email address from
    your query Have your textmessage box set up on this page with the default
    value for your message as te text. Have all of these wrapped in a form field
    and submit button sends them to thank you page. on thank you page use <cfmail>
    tag. Or you can do it all through Java Script. To do this you will need
    Coldfusion though and Dreamweaver really helps too. Wouldn't use Frontpage.
    First off it is a microsoft product and it doesn't play together with
    coldfusion any where as well as dreamweaver.

    brokerandy25 Guest

  5. #4

    Default Re: Email Your Legislator Form: How?

    Randy,

    I just want to say thank you very much for the advice on forms. I think this
    will be enough to at least get me going in the right direction. If I get stuck
    I can always post again. Thanks so much again!

    clayrains Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139