Read the documentation:
http://livedocs.macromedia.com/coldfusion/7/htmldocs/00001252.htm
page1.html
----------
<form id="form1" name="form1" method="post"
action="page2.cfm">
<label>enter id <input type="text" name="textfield"
/>
</label>
</form>
page2.cfm
---------
<cfquery name="foo" datasource="bar">
SELECT aField, bField, cField
FROM aTable
WHERE aField = <cfqueryParam value="#form.textfield#"
cfsqltype="cf_sql_varchar">
</cfquery>
<cfoutput query="foo">
#aField# #bField# #cField#
</cfoutput>
briankind wrote:
> query based on a test input box
>
> hi
> i have this html input box and i want to output a query
based on what i put in
> the input box. what should i do now.
>
> thanks
>
>
> <form id="form1" name="form1" method="post"
action="">
> <label>enter id <input type="text"
name="textfield" />
> </label>
> </form>
>