Hi Mike,

 

You could do something like this:

 

 

<cfif isDefined(“FORM.Post”)>

 

something happens here…..<br>
            <cfoutput>#FORM.username#, #FORM.password#</cfoutput>

 

</cfif>

 

 

<form name=”PostForm” method=”post” action=”thispage.cfm”>

 

<input type=”text” name=”form1” value=”username”>

<input type=”text” name=”form2” value=”password”>
            <input type=”hidden” name=”Post” value=”Post”>

<input type=”submit” name=”submit” value=”Submit”>


</form>

 

 

The form page submits to itself and the code within the conditional statement will execute only if the value FORM.Post is passed.

 

 

Nolan

 

 

 

 

 

Nolan J. Dubeau
Senior Developer, (*Maracca)

Application Design & Technology

------------------------------------------------

p. 416.532.8852

e. [EMAIL PROTECTED]

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Mike
Sent: Monday, April 08, 2002 3:44 PM
To: [EMAIL PROTECTED]
Subject: [CFTALKTor] Post to Self

 

Hi All,

 

Please excuse the beginner question.  I am trying to make pages that post to themselves.  I there a way to set up a variable that that dynamically includes the template name so I don't have to keep changing the template name when I reuse a form.

 

Thanks

 

Mike

Reply via email to