cfform

Coldfusion (Update Array using CFForm - Change values after Submit)

纵饮孤独 提交于 2020-01-15 23:37:49
问题 I have a simple form. Values are loaded from a database into an array and then the entire table is displayed using cfinput and cfselect tags to allow field editing. So, I was hoping to be able to change any fields up and down the table that is displayed and then click SUBMIT and display the changed fields but nothing is ever changed. The table just reverts back to the original and the changes to the tags dissappear. I don't want to have the user update each field seperately using a seperate

Sending cf mail from a static page to single recipient

会有一股神秘感。 提交于 2020-01-15 05:16:28
问题 Trying to send <cfmail> from a contact us static page. It will have a single recipient and I don't want to save it on the back end. <cfcase value="contact"> <cfset caller.mainTitle = "Contact Us"> <div id="contact_form"> <cfform method="post" action="contact2" id="usrform"> First Name<br> <input class="textbox" type="text" name="firstName" value="First Name" onfocus="if (this.value=='First Name') this.value='';"> <br> Last Name<br> <input class="textbox" type="text" name="lastName" value=

Parse array that contains input names and values back into a form as readonly

☆樱花仙子☆ 提交于 2020-01-05 13:09:26
问题 Background: I am going to save my ColdFusion forms data into an array and store that array into the column of a database. The only thing I will be doing with this array is making a call to the database for the data and parsing it back into my form but as "Read Only". The array will contain both the input name and value. Question: In ColdFusion after I have queried the database for the array data what would be the best process to parse the data back into my form? Do I have to recreate my form

Parse array that contains input names and values back into a form as readonly

牧云@^-^@ 提交于 2020-01-05 13:08:15
问题 Background: I am going to save my ColdFusion forms data into an array and store that array into the column of a database. The only thing I will be doing with this array is making a call to the database for the data and parsing it back into my form but as "Read Only". The array will contain both the input name and value. Question: In ColdFusion after I have queried the database for the array data what would be the best process to parse the data back into my form? Do I have to recreate my form

ColdFusion how to set form input values from the results of a cfquery?

会有一股神秘感。 提交于 2019-12-20 03:23:39
问题 Question: (part 1) I am looking for the most efficient way to set my form input values based on the results of my cfquery . My form fields all match the column names in the database. I know using cfinsert I can update the database with form input values. Is there a way to do that in reverse? (part 1.5) How do I set the values of select and radio buttons based on the value of my cfquery? Background: I have a form with 60+ inputs with a mixture of text , select , radio and textarea . The page I

CSS bleed-through with cfinput type=“datefield”

北城余情 提交于 2019-12-12 17:48:15
问题 I have a form using multiple <cfinput type="datefield" ...> . They are positioned in such a way that the pop-up CSS calendar should appear over the field for others. However, the text fields for the other dates end up in front of the calendar. This is only an IE issue as Firefox and Safari work just fine. Is there a simple CSS hack or some other simple thing I can do to get the calendar to act as it should? Re-arranging the form is not very helpful. 回答1: Well, you have to encapsulate your

Coldfusion serializeJSON example

ぐ巨炮叔叔 提交于 2019-12-08 03:49:48
问题 I'd like to see a simple template example with SerializeJSON and deserializeJSON posting to the same template and an Array adding each time a pass occurs. I've tried this several times and I keep getting confused by the pass. 回答1: <cfif structKeyExists(form,"jsonArray")> <cfset arrayData = deserializeJSON(form.jsonArray) /> <cfset arrayAppend(arrayData,form.theText) /> <cfelse> <cfset arrayData = [] /> </cfif> <cfoutput> <form name="input" action="ableto.cfm" method="post"> <input type=