alexfusion
Programmer
Hello everyone,
I would like to know how to get the value entered for a visitor in a form field,so I can perform a search on a database based on the value entered for the visitor.
Here is the code I put in the action page but I get a type mismatch error:
<cfquery name="search_customer" datasource="datasourcename" dbtype="ODBC">
SELECT customer_name FROM customer_table
WHERE customer_name=#form.customername#
As you can see,here customername is the name of the form field in the page where the form is located.I built the form using the post method.
Could you indicate to me what is wrong.I know that the error is in the SQL statement but I don't know what is it.
Any help very much apprecciated!
Alexfusion
mixale@hotmail.com
I would like to know how to get the value entered for a visitor in a form field,so I can perform a search on a database based on the value entered for the visitor.
Here is the code I put in the action page but I get a type mismatch error:
<cfquery name="search_customer" datasource="datasourcename" dbtype="ODBC">
SELECT customer_name FROM customer_table
WHERE customer_name=#form.customername#
As you can see,here customername is the name of the form field in the page where the form is located.I built the form using the post method.
Could you indicate to me what is wrong.I know that the error is in the SQL statement but I don't know what is it.
Any help very much apprecciated!
Alexfusion
mixale@hotmail.com