Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Element EMAIL1 is undefined in FORM

    I am trying to learn Coldfusion from a book entitled 'Coldfuions MX with Dreamweaver MX'.

    However the first exercise doesnt appear to work.

    I an getting this error:

    Element EMAIL1 is undefined in FORM

    As I am a beginer I am not sure what to do.

    Here is the main part of my page:
    Code:
    <form name="form1" method="post" action="action.cfm">
      <table width="400"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td>Email</td>
          <td><cfoutput>#Form.email1#</cfoutput></td>
        </tr>
        <tr>
          <td>Conformation Email </td>
          <td><cfoutput>#Form.email2#</cfoutput></td>
        </tr>
        <tr>
          <td>Newsletter Format </td>
          <td><cfoutput>#Form.format#</cfoutput></td>
        </tr>
      </table>
      <p>&nbsp;</p>
      <table width="400"  border="0" cellspacing="0" cellpadding="0">
        <tr>
          <td><input name="email1" type="text" id="email1"></td>
          <td>Email address </td>
        </tr>
        <tr>
          <td><input name="email2" type="text" id="email2"></td>
          <td>Email address confirm </td>
        </tr>
        <tr>
          <td><p>
            <label>
            <input type="radio" name="format" value="html">
      HTML Format</label>
            <br>
            <label>
            <input type="radio" name="format" value="text">
      Text Format</label>
            <br>
          </p></td>
          <td><input type="submit" name="Submit" value="Submit">
          <input type="reset" name="Submit2" value="Reset"></td>
        </tr>
      </table>
    </form>
    I have attached the file - but renamed it from form.cfm to form.txt

    I think the idea of the page is that you enter date into the form on the page, press submit and on the same page the data is displayed.

    I've never done any Coldfusion before so have no idea how to fix it.

    Thanks.
    Attached Files Attached Files

  • #2
    New Coder
    Join Date
    Mar 2006
    Posts
    76
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Well, at third glance, are those supposed to be input boxes or are you outputting data from a previous page?


  •  

    Posting Permissions

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