I got one last question. Its more related to my question about the serials and would post it in that forum but we already closed it an i think its a simple question, if it needs a new forum let me know :).
When i was testing out insertinga description and a resolution (both textarea fields).When i go to submit i noticed a problem.if you put any words like for example: here's in the field it will not submit it. The comma is what it is having trouble on. An i have a textarea field like these 2 an it has no trouble with it an they have everything the same except how it inserts. This is what i have for when it inserts for both resolution and description
I thought/think its the listLen causing the trouble an i tried this listLen(Form.se rialcount," ' ") to make it so it would accept commas, but
it didn't work. But i am basically wondering if there is a way to make it accept commas or if the way i am doing it will just not accept commas?
Thank you,
Rach
When i was testing out insertinga description and a resolution (both textarea fields).When i go to submit i noticed a problem.if you put any words like for example: here's in the field it will not submit it. The comma is what it is having trouble on. An i have a textarea field like these 2 an it has no trouble with it an they have everything the same except how it inserts. This is what i have for when it inserts for both resolution and description
Code:
<CFIF REQUEST_METHOD EQ "POST">
<CFSET machineListLen = listLen(Form.serialcount)>
<CFLOOP from="1" to="#machineListLen#" index="machineCount">
<CFSET serialnum = "Form.serialnum_" & machineCount>
<CFSET modelno = "Form.modelno_" & machineCount>
<CFSET producttype = "Form.producttype_" & machineCount>
<CFSET softhardware = "Form.softhardware_" & machineCount>
<CFSET resolution = "Form.resolution_" & machineCount>
<CFSET resdate = "Form.resdate_" & machineCount>
<CFSET resvertified = "Form.resvertified_" & machineCount>
<CFSET vertifidate = "Form.vertifidate_" & machineCount>
<CFSET deptvendor = "Form.deptvendor_" & machinecount>
<CFSET hardwarefailure = "Form.hardwarefailure_" & machineCount>
<CFSET rma = "Form.rma_" & machineCount>
<CFSET thedescription = "Form.thedescription_" & machineCount>
<cfquery name="serial" datasource="CustomerSupport">
exec usp_CS_Insertserial
'#evaluate(serialnum)#','#Form.ID#','#evaluate(modelno)#','#evaluate(producttype)#',
'#evaluate(softhardware)#','#evaluate(resolution)#','#evaluate(resdate)#',
'#evaluate(resvertified)#','#evaluate(vertifidate)#','#evaluate(deptvendor)#',
'#evaluate(hardwarefailure)#','#evaluate(rma)#'
</CFQUERY>
<!---Inserts information into notes_descr table.--->
<cfquery name="description" datasource="CustomerSupport">
exec usp_CS_Insertdescription
'#evaluate(serialnum)#','#Form.ID#','#evaluate(thedescription)#','#Form.fk_addedBy#'
</cfquery>
</CFLOOP>
</CFIF>
it didn't work. But i am basically wondering if there is a way to make it accept commas or if the way i am doing it will just not accept commas?
Thank you,
Rach
Comment