...

View Full Version : Element EMAIL1 is undefined in FORM



JF80
06-25-2007, 09:02 PM
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:

<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.

crono.Serge
07-05-2007, 01:43 PM
Well, at third glance, are those supposed to be input boxes or are you outputting data from a previous page?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum