Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing parameters in form (emergency)

Status
Not open for further replies.

giahan

Programmer
Sep 1, 2000
139
US
I'd like to make a form (like and application) After user fills in, user can preview, than save the form under html files (with all checkboxes with value checked or unchecked). I get stuck when trying to let user sees checkbox value (the square with mark or unmark in it). Is there anyone that can help me on this?
Thank you
 
Try the following code:

<cfparam name=&quot;IsOk&quot; default=&quot;&quot;>


<form ...>
<input type=&quot;checkbox&quot; name=&quot;IsOk&quot; value=&quot;1&quot; <cfif IsOk eq 1>CHECKED</cfif>>
</form>

I made similar code at one point. Making cfparams and checking their values submitted via <cfif> tags helps. [sig]<p> <br><a href=mailto:aberman@thebiz.net>aberman@thebiz.net</a><br><a href= > </a><br>Database web programmer and developer, fueled by peach snapple and mochas.[/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top