>Richard,
>
>Here's an example of a form using the same page to post data using
>only Coldfusion to give the user feedback that the form has been
>submitted:
>
><!--- Call our component which handles database updates--->
><cfset mycomponent = createObject("component","components.component")/>
>
><!--- If we're submitting the form --->
><cfif isDefined('FORM.submit')>
><!--- The component we're calling returns a boolean value of "true"
>when the database is updated --->
><cfset formProcessed = mycomponent.doSomething()/>
><cfif>
>
><!--- If our form has been processed give them a message telling them
>so --->
><cfif formProcessed>
><p class="notice">Your form has been processed successfully.</p>
></cfif>
>
><!--- Now here's our form --->
><form name="myform" action="" method="post">
><input type="submit" name="submit" id="submit" value="Post This Form"/>
></form>
>
>
>-Jon
>
>On Sep 21, 2006, at 2:09 PM, Richard White wrote:
>
>>
thanks jon this has made me understand alot
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Introducing the Fusion Authority Quarterly Update. 80 pages of hard-hitting,
up-to-date ColdFusion information by your peers, delivered to your door four
times a year.
http://www.fusionauthority.com/quarterly
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:253769
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4