Created
July 9, 2025 07:46
-
-
Save trycf/26fb208b5c51b543a17e0b500a8ac0f5 to your computer and use it in GitHub Desktop.
TryCF Gist
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfif structKeyExists("form","username")> | |
<cfoutput> | |
<h2>Thank You, #form.username#</h2> | |
<br /> | |
<p>You are #form.age# years old.</p> | |
</cfoutput> | |
<cfelse> | |
<form method="post" action=""> | |
<label for="username">Name:</label> | |
<input type="text" name="username" /> | |
<label for="userage">Age:</label> | |
<input type="number" name="userage" /> | |
<label for="userpw">Password:</label> | |
<input type="password" name="userpw" /> | |
<input type="submit" value="submit" /> | |
</form> | |
</cfif> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment