Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
pinball4200 #1
Values in Text Boxes
I am a bit confused on how to pass the value of text box to a url. I am able to
do so with the select box and html buttons.
My code looks like this
<form method="post"
action="SearchActionTest.cfm?value=Keyword.VALUE">
<p>Keyword: <input name="Keyword" size="40" type="text">
<input value="Search" name="Search" type="submit"></p>
</form>
I.e Someone will type in the word Auburn the url that should be dislplayed is
[url]http://localhost/SearchActionTest?value=Auburn[/url]
or if someone types in the word Norris it should disply
[url]http://localhost/SearchActionTest?value=Norris[/url]
pinball4200 Guest
-
Can we bind the values from cfselect to display thoseinto cfinput text boxes.
Hi, I have a cfselect box which is having values from cfquery. I want to bind those values into few input boxes. I have been trying for so many... -
Pasting text with autoformatting in few text boxes
My main problem is how to paste to 3 separate text-boxes plain text like this and have it formatted automaticly: 700,000 Cliff Road, Tramore,... -
Hyperlink text issue, two text boxes, one disfuntional
Hi, I have created a frame in director with two buttons and two text documents. When you click one button, you see a text document, when you click... -
Make text boxes "forget" values
Hi Jonathan! I believe that the IsPostBack property is what you're looking for. You can add code to the page_load event that looks something... -
seperating columns in a text box into multiple text boxes?
Berney: You probably are better off doing this separating in the query data source for your form. You can use string commands to find which... -
Dan Bracuk #2
Re: Values in Text Boxes
How did you do it with the select box and buttons? The same general method should work with a text input.
Dan Bracuk Guest
-
pinball420 #3
Re: Values in Text Boxes
Well the one for the buttons is done in the button because i can statically set
it for each button. The Select box is containted in the code below
<form name="form1" method="get"
action="ShowClass.cfm?testclass=#GetClass.Speciali ty#">
<select name="select">
<cfoutput query="GetClass">
<option value="#GetClass.Speciality#" <cfif
(isDefined("GetClass.Speciality") AND GetClass.Speciality EQ
GetClass.Speciality)>selected</cfif>>#GetClass.Speciality#</option>
</cfoutput>
</select>
<input type="submit" value="Submit">
</form>
pinball420 Guest
-
Dan Bracuk #4
Re: Values in Text Boxes
Just start appending the form values separated by ampersands. This
action="ShowClass.cfm?testclass=#GetClass.Speciali ty#">
becomes this
action="ShowClass.cfm?testclass=#GetClass.Speciali ty#&name=#name.name#">
For my own curiousity, why do you want to do this. The form variables will be
available to your showclass template and there are better places to display the
values than the url.
Dan Bracuk Guest



Reply With Quote

