View Single Post
Old 06-25-2007, 09:02 PM   PM User | #1
JF80
New to the CF scene

 
Join Date: Jun 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
JF80 is an unknown quantity at this point
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
File Type: txt form.txt (1.9 KB, 393 views)
JF80 is offline   Reply With Quote