Hi,

I hope the answer is as obvious as I think it is. You are using cold fusion
notation within an html tag. Since the bits between the # marks are supplied
by the CF server, but the CF server is not normally looking for work to do
inside html tags, you have to put the <form> inside a cfoutput tag to get
the CF server to pay attention and replace the #xxxx# values.

If you were using cfform instead, CF server knows it has to look at cfform,
since it is a CF tag not an HTML tag. I doubt that you would have to put a
similar cfform inside cfoutput tags.

Regards,

Alan Ford


-----Original Message-----
From: Jonathan Lim <[EMAIL PROTECTED]>
To: '[EMAIL PROTECTED]' <[EMAIL PROTECTED]>
Date: Thursday, July 06, 2000 7:22 PM
Subject: [Edit handlers] Do you need form or cfform?


>Hi,
>
>Trying to code an edit handler, which is a single page self-submitting
form.
>
>We have encountered a strange problem...
>
>Code 1:
><form action="#cgi.script_name#?objectID=#News.objectID#" method="POST">
><CFOUTPUT>
>...
></CFOUTPUT>
></form>
>
>Code 2:
><CFOUTPUT>
><form action="#cgi.script_name#?objectID=#News.objectID#" method="POST">
>...
></form>
></CFOUTPUT>
>
>The first code works. The second one does not.
>
>Why?
>
>Cheers,
>Jon
>
>--
>Jonathan Lim [EMAIL PROTECTED]
>Netdecisions http://www.netdecisions.co.uk/
>---------------------------------------------------------------------------
---
>To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk
or send a message to [EMAIL PROTECTED] with
'unsubscribe' in the body.
>

------------------------------------------------------------------------------
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/spectra_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to