Form Processing Applications

Ask a Question related to Macromedia Dynamic HTML, Design and Development.

  1. #1

    Default Form Processing Applications

    I have not had much experience with forms processing, but need to build one for
    a site. I saw a link to Kmita-mail ([url]http://www1.kmita-mail.com/[/url]) that looks
    promising for making the process easier. Does anyone have any experience with
    this product or another that does something similar?

    The form is for a job application (about 40 fields). The process only needs to
    convert the data to an email and send it to the customer.

    Thanks for any help you can offer.

    Brady

    bradyg23 Guest

  2. Similar Questions and Discussions

    1. DW MX - Extension for Form Processing?
      Hello, I'm back on DW MX after a break from it. And in a way, I'm addressing here the crux of why I had to go back to Frontpage for a while. In...
    2. Secure Form processing
      After a user clicks the submit button on an order form, I am unable to get the redirect specified in the form to go to a secure page. This causes...
    3. Flash Form Applications
      Hi All, I need some serious advice on what is the best way to build applications in Flash Professional using Forms. We are working on a major...
    4. Form Processing
      Hi, I am designing a basic email form using Dreamweaver and the checks are successful. Does Dreamweaver have any functionality to enable me to...
    5. More form processing
      Hey folks, I need some of your expertiese again. I am creating a survey form and need some help gathering the results of a question that has...
  3. #2

    Default Re: Form Processing Applications

    Ask your host what they provide for processing forms.

    --
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    [url]http://www.dreamweavermx-templates.com[/url] - Template Triage!
    [url]http://www.projectseven.com/go[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.dwfaq.com[/url] - DW FAQs, Tutorials & Resources
    [url]http://www.macromedia.com/support/search/[/url] - Macromedia (MM) Technotes
    ==================


    "bradyg23" <webforumsuser@macromedia.com> wrote in message
    news:egjadq$p22$1@forums.macromedia.com...
    >I have not had much experience with forms processing, but need to build one
    >for
    > a site. I saw a link to Kmita-mail ([url]http://www1.kmita-mail.com/[/url]) that
    > looks
    > promising for making the process easier. Does anyone have any experience
    > with
    > this product or another that does something similar?
    >
    > The form is for a job application (about 40 fields). The process only
    > needs to
    > convert the data to an email and send it to the customer.
    >
    > Thanks for any help you can offer.
    >
    > Brady
    >

    Murray *ACE* Guest

  4. #3

    Default Re: Form Processing Applications

    I use GoDaddy Windows hosting. I checked, and they provide the following ASP
    script. It takes all of the form fields, sorts them by alphabetical order, and
    returns all of the data in a fairly raw form.

    I would like to take this and add some formatting to it, because it the form
    has about 60 fields and would be difficult to read otherwise. Where in this
    script would I start to add in the appropriate formatting?

    (The current output reads like:
    a_High_School_Name: Milton HS
    b_Years_Attended: 1989-1993
    c_HS_Graduate: HSgrad_yes
    d_HS_Subject_Studied: Math, English, Music
    e_College_Name: Furman University
    f_Years_Attended: 1993-1997
    g_College_Graduate: colgrad_yes
    I added the letters to the field names to have this sort alphabetically, but
    its obviously still hard to read for 60+ fields)



    <%

    Dim landing_page, host_url
    Dim fso, outfile, filename, dirname, myFolder
    Dim req_method, key, value
    Dim bErr, errStr, bEmpty
    On Error resume next
    bErr = false
    bEmpty = true
    errStr = ""
    Set fso = Server.CreateObject("Scripting.FileSystemObject")
    host_url = Request.ServerVariables("HTTP_HOST")
    req_method = Request.ServerVariables("REQUEST_METHOD")
    dtNow = Now()
    filename = Server.MapPath("ssfm")
    dirname = filename
    filename = filename & "/gdform_" & DatePart("M", dtNow) & DatePart("D", dtNow)
    & DatePart("YYYY", dtNow) & DatePart("N", dtNow) & DatePart("S", dtNow)

    Function FormatVariableLine(byval var_name, byVal var_value)
    Dim tmpStr
    tmpStr = tmpStr & "<GDFORM_VARIABLE NAME=" & var_name & " START>" & vbCRLF
    tmpStr = tmpStr & var_value & vbCRLF
    tmpStr = tmpStr & "<GDFORM_VARIABLE NAME=" & var_name & " END>"
    FormatVariableLine = tmpStr
    end function

    Sub OutputLine(byVal line)
    outfile.WriteLine(line)
    end sub

    if err.number = 0 then
    Set outfile = fso.CreateTextFile(filename, true, false)
    if err.number <> 0 then
    bErr = true
    errStr = "Error creating file! Directory may not be writable or may not
    exist.<br>Unable to process request."
    else
    if(req_method = "GET") then
    for each Item in request.QueryString
    if item <> "" then
    bEmpty = false
    key = item
    value = Request.QueryString(item)
    if(lcase(key) = "redirect") then
    landing_page = value
    else
    line = FormatVariableLine(key, value)
    Call OutputLine(line)
    end if
    end if
    next
    elseif (req_method = "POST") then
    for each Item in request.form
    if item <> "" then
    bEmpty = false
    key = item
    value = Request.form(item)
    if(lcase(key) = "redirect") then
    landing_page = value
    else
    line = FormatVariableLine(key, value)
    Call OutputLine(line)
    end if
    end if
    next
    end if
    outfile.close
    end if
    if(bEmpty = true) AND errStr = "" then
    bErr = true
    errStr = errStr & "<br>No variables sent to form! Unable to process request."
    end if
    if(bErr = false) then
    if (landing_page <> "") then
    response.Redirect "http://" & host_url & "/" & landing_page
    else
    response.Redirect "http://" & host_url
    end if
    else
    Response.Write errStr
    end if
    set fso = nothing
    else
    Response.Write " An Error Occurred creating mail message. Unable to process
    form request at this time."
    end if
    %>

    bradyg23 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