Yahoo Answers is shutting down on May 4th, 2021 (Eastern Time) and the Yahoo Answers website is now in read-only mode. There will be no changes to other Yahoo properties or services, or your Yahoo account. You can find more information about the Yahoo Answers shutdown and how to download your data on this help page.
Trending News
ColfFusion (CFInput question)?
Can anyone tell me what would be difference between using Submit and using Button for this line.
<cfinput type="button" name="search_submitBtn" value="Search" />
1 Answer
- Anonymous1 decade agoFavorite Answer
cfinput is used on a CF server to automatically add javascript validation to an input field.
when you use cfinput you must place it inside a cfform tag
cfinputs are used on input types: text, checkbox, radio, password
..But there is no point in using cfinput on a button it won't do anything, just use a regular HTML input for that.
here is an example of using cfinput:
<cfform action="" method="post">
<cfinput type="text" name="searchterm" value="" required="yes" message="Please enter a search term" />
<input type="submit" value="search" />
</cfform>