Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / ColdFusion / Getting Started / November 2007



Tip: Looking for answers? Try searching our database.

Help needed with online form

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Barry_G - 21 Nov 2007 15:29 GMT
I have developed an HTML online form that is 2 part. the html form itself that
my employees access thru our network, fill out and submit. this is a document
change request.  I have set up two departments selectable by radio button. I
thought that when one is selected, that when the submit button is clicked to
send the email request out, that some how based on which button was checked,
then the email would go to that department. example: one department is "PCBA"
which is myself. One department is "INTERCONNECT" which is Joes department. if
the "INTERCONNECT" radio button was selected, then the email would go to joe.
If the "PCBA" radio button was selected, then the email would come to myself.
I'm not sure how to code this. I can send both my HTML form and Cfmail form to
anybody to review if that would help.

Thank you.:confused;
jdeline - 21 Nov 2007 16:40 GMT
See code snippet below.

<!--- this is the page with the radio buttons --->
<INPUT TYPE="radio" NAME="sendTo" VALUE="PCBA@myCompany.com">
<INPUT TYPE="radio" NAME="sendTo" VALUE="INTERCONNECT@myCompany.com">

<!--- this is the action page --->
<CFMAIL TO="#FORM.sendTo#" ... >
Barry_G - 21 Nov 2007 16:58 GMT
Thank you jdeline, I will work on this and let you know.
Barry
Barry_G - 21 Nov 2007 21:42 GMT
jdeline,
can I email my data to you for your review. after your email, i spoke with my
IT manager, and we made some changes, but when I click submit, I do not recieve
any emails. I have created two email Dist. lists. both currently with my email
in them.

Barry
SafariTECH - 22 Nov 2007 19:16 GMT
check the MAIL directory on the server and see if the emails ended up in the UNDEL folder
jdeline - 23 Nov 2007 12:25 GMT
Do you have the CFMAIL tag wrapped in a CFOUTPUT tag pair?
Barry_G - 26 Nov 2007 14:22 GMT
Thank you jdeline,
My It mgr. has looked it over and I have an email this am that says he got it
to work. If not I will let you know. if so I would like to than you for your
assistance in this matter.
Sincerely Barry.
Barry_G - 26 Nov 2007 17:12 GMT
I am using Dreamweaver and in the split view mode (Design/Preview), I can see
my code but the preview pane is blank. When my email form would not work, I
could see the form in the preview pane. However now that the form works, It
will not show in the preview pane. I know that my IT mgr. moved some tags
around that enable the form to work. Howerver, I think something is still out
of wack because I believe that I should still be able to view this in the
preview mode.
I apologize for this, but I am new to this Cold Fusion stuff, and this is my
first attempt.

Barry
ChennaiBhai - 27 Nov 2007 14:20 GMT
Dreamweaver Problem:
That's becoz ,previous, the page might be well-formed but logically incorrect
. Hence ur email form was not working.
Now the case might be that some of the HTML tags are not properly matched or
closed.
Review those tags properly. You then might then be able to preview it in your
Split View Mode.

Cheers:)
Cherry
Barry_G - 28 Nov 2007 15:35 GMT
ChennaiBhai,
I can't seem to locate any violations.

I am attaching the code for your viewing.
Barry

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<html>

<head>
    <title>Document Change Requeste (DCR) FRM-0001</title>
   
    <link rel="STYLESHEET" type="text/css"
href="file://///xavier/isolive/teststyle 032706 .css">
   
<br><br>
 <style type="text/css">
<!--
.style1 {font-size: xx-small}
-->
    </style>
   
</head>

<body>
<cfmail to="#form.recipient#" from="#form.email#" subject="#form.subject#"
type="HTML">
#form.subject#

<table width="99%">
        <tr align="center">
         <td><span class="xxlarge">DOCUMENT CHANGE REQUEST (DCR)</span><br>
           <span class="bold">FRM-0001</span></td></tr>
   </table>

   
   <br>
   <br>

  <hr size="2">
<center><table>
    <tr>
      <td></td>
      <td align="right" class="bold">DCR Number: </td>
      <td width="334">#form.dcr_number#<span class="italic style1">(Document
control use only)</span></td></tr>
   
    <tr>
      <td width="115"></td>
      <td width="449" class="small">mm/dd/yy</td></tr>
   
    <tr>
      <td align="right"><span class="bold">Date:</span></td>
      <td>#form.date_requested#</td></tr>
     
    <tr>
      <td align="right"><span class="bold">Document Title: </span></td>
      <td>#form.Document_Title#</td></tr>
   
    <tr>
      <td align="right"><span class="bold">Customer: </span></td>
      <td>#form.customer#</td></tr>
     
    <tr>
      <td align="right"><span class="bold">Originator: </span></td>
      <td>#form.originator#</td></tr>
   
    <tr>
      <td align="right"><span class="bold">Department:</span></td>
      <td colspan="3"><cfif #form.recipient# EQ
"PCBA_DCR@westernelectronics.com">
         <cfset checked="checked">
        <cfelse>
        <cfset checked="">
        </cfif>&nbsp;
          <input type="radio" name="recipient" value="#form.recipient#"
#checked#>
        PCBA &nbsp;
        <cfif #form.recipient# EQ "INTERCONNECT_DCR@westernelectronics.com">
        <cfset checked="checked">
        <cfelse>
        <cfset checked="">
        </cfif>
          <input type="radio" name="recipient" value="#form.recipient#"
#checked#>
        INTERCONNECT</td></tr>
   
    <tr>
      <td align="center" colspan="3"><span class="bold">Description of
change:</span></td></tr>
   
    <tr>
      <td colspan="3"><textarea name="Description_of_Change" rows="20"
cols="80">#form.Description_of_Change#</textarea></td></tr>
   
    <tr bgcolor="##CCCCCC">
      <td colspan="3" align="center"><span class="bold"></span> <span
class="bold">Type of Change</span></td></tr>
   
    <tr>
      <td colspan="3"><cfif #form.ChangeType# EQ "Revise Current Document">
          <cfset checked="checked">
          <cfelse>
          <cfset checked="">
        </cfif>
          <input type="radio" name="ChangeType" value="Revise Current
Document" #checked#>
        Revise Current Document &nbsp;
        <cfif #form.ChangeType# EQ "Obsolete Document">
          <cfset checked="checked">
          <cfelse>
          <cfset checked="">
        </cfif>
        <input type="radio" name="ChangeType" value="Obsolete Document"
#checked#>
        Obsolete Document  &nbsp;
        <cfif #form.ChangeType# EQ "Other Specify">
          <cfset checked="checked">
          <cfelse>
          <cfset checked="">
        </cfif>
        <input type="radio" name="ChangeType" value="Other Specify" #checked#>
        Other Specify  &nbsp;
        <input type="text" name="Other" value="#form.Other#">
      </td></tr>
   
   
   
    <tr bgcolor="##CCCCCC">
      <td colspan="3" align="center" class="bold">Type of Document</td></tr>
     
     
    <tr>
      <cfif #form.Type_of_Document# EQ "Customer Document">
        <cfset checked="checked">
        <cfelse>
        <cfset checked="">
      </cfif>
      <td colspan="2"><input type="radio" name="Type_of_Document"
value="Customer Document" #checked#>
        Customer Document &nbsp;
        <cfif #form.Type_of_Document# EQ "SOP">
          <cfset checked="checked">
          <cfelse>
          <cfset checked="">
        </cfif>
        <input type="radio" name="Type_of_Document" value="SOP" #checked#>
        SOP &nbsp;
        <cfif #form.Type_of_Document# EQ "Policy">
          <cfset checked="checked">
          <cfelse>
          <cfset checked="">
        </cfif>
        <input type="radio" name="Type_of_Document" value="Policy" #checked#>
        Policy &nbsp;
        <cfif #form.Type_of_Document# EQ "Work Instruction">
          <cfset checked="checked">
          <cfelse>
          <cfset checked="">
        </cfif>
        <input type="radio" name="Type_of_Document" value="Work Instruction"
#checked#>
        Work Instruction</td></tr>
       
       
    <tr>
      <cfif #form.Type_of_Document# EQ "Form">
        <cfset checked="checked">
        <cfelse>
        <cfset checked="">
      </cfif>
      <td colspan="2"><input type="radio" name="Type_of_Document" value="Form"
#checked#>
        Form
        <cfif #form.Type_of_Document# EQ "Run-List">
          <cfset checked="checked">
          <cfelse>
          <cfset checked="">
        </cfif>
        <input type="radio" name="Type_of_Document" value="Run-List" #checked#>
        Run-List
        <cfif #form.Type_of_Document# EQ "Other-Specify">
          <cfset checked="checked">
          <cfelse>
          <cfset checked="">
        </cfif>
        <input type="radio" name="Type_of_Document" value="Other-Specify"
#checked#>
        <cfif #form.Type_of_Document# EQ "Run-List">
          <cfset checked="checked">
          <cfelse>
          <cfset checked="">
        </cfif>
        Other-Specify
        <input type="text" name="Other_Specify"
value="#form.other_specify#"></td></tr>
       
       
  </table></center>

    </cfmail>
</body>
<cflocation url="#form.redirect#" addtoken="No">
   
</html>
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.