first_page the funky knowledge base
personal notes from way, _way_ back and maybe today

Cold Fusion 3.1 CFML: Submitting a Form Back to Itself Using the IsDefined() Function

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<HTML> <HEAD> <META NAME="Generator" CONTENT="Bryan Wilhite"> <META NAME="Reply-to" CONTENT="bwilhite@assetstrategy.com"> <META NAME="Keywords" CONTENT="Development"> <META NAME="Description" CONTENT="Development"> <TITLE>Asset Strategy Consulting</TITLE> </HEAD>

<BODY>

<CFIF IsDefined("form.formText")>

&lt;H1&gt;&lt;CFOUTPUT&gt;#form.formText#&lt;/CFOUTPUT&gt;&lt;/H1&gt;

<CFELSE>

&lt;FORM ACTION=&quot;HelloWorld.cfm&quot; METHOD=POST&gt;

    Please enter some text:
    &lt;INPUT TYPE=&quot;text&quot; NAME=&quot;formText&quot; VALUE=&quot;Hello World!&quot;&gt;
    &lt;INPUT TYPE=&quot;submit&quot; VALUE=&quot;Display Text&quot;&gt;

&lt;/FORM&gt;

</CFIF>

</BODY> </HTML>

mod date: 2001-03-20T05:36:38.000Z