Ask a Question related to Coldfusion - Getting Started, Design and Development.
-
D Woods #1
forcing upper case on insert of record
I'm having trouble figuring out the code to force a form field to upper case
when it is inserted into the database. This is what I have. What am I doing
wrong? Thanks.
<cfquery name = "insdata" datasource = "#application.dsn#">
insert into accounts
(fname, lname, hsname, hscity, hsstate)
values('#form.fname#','#form.lname#','#UCASE(form. hsname)#','#form.hscity#','#form.hsstate#')
</cfquery>
D Woods Guest
-
All text appear in upper case HELP!
I don't know why but everything I enter appears in upper case. My caps are off and I checked everywhere I could think off to find how to turn off... -
automatically change to Upper Case
Hi All, need a little help from all of u guys. I want to change input to uppercase while user key in. SO how can I make i in the input text... -
Forcing text into UPPER CASE???
Is it possible to force a text members contents into upper case. E.g. 'nik' would be typed into a editable text box, it would then be turned into... -
help! forcing form variable to upper case (ASP VB)
I got the following code help to force a form input to uppercase, but don't know where in the code it belongs. Can someone elaborate? strTemp =... -
OCI_ASSOC returns key with upper case string
Hello, First let me say that I am not sure if this is PHP problem or Oracle. I have a class that contains API for using postgresql, mysql, or... -
Dan Bracuk #2
Re: forcing upper case on insert of record
Your code looks like the hsname will be inserted upppercase, and everything else will be inserted as entered. Is that what is happening? Is that what you want?
Dan Bracuk Guest
-
D Woods #3
Re: forcing upper case on insert of record
Yes...sorry I left that part out of my original post. I just need hsname to
be forced to upper case.
"Dan Bracuk" <webforumsuser@macromedia.com> wrote in message
news:div3vg$qb2$1@forums.macromedia.com...> Your code looks like the hsname will be inserted upppercase, and
> everything else will be inserted as entered. Is that what is happening?
> Is that what you want?
D Woods Guest
-
redevolve #4
Re: forcing upper case on insert of record
Should be fine if hsname is the field that you want to be converted to uppercase.
redevolve Guest
-
Dan Bracuk #5
Re: forcing upper case on insert of record
And it's not happening? Your code suggests that it should.
There is always this way:
<cfset uppercasehsname=ucase(form.hsname)>
Then use this new variable in your query instead of form.hsname. But I find
it odd that your code as posted does not accomplish this. Mind you, I don't
think I have ever used the ucase function inside a cfquery tag so I don't know
for sure.
Dan Bracuk Guest
-
jjsand28 #6
Re: forcing upper case on insert of record
Check the formatting of the column in your database. That might be causing it.
jjsand28 Guest



Reply With Quote

