Hi, the code I posted is mine which changes everything to lowercase then finally changes the first leter to uppercase. What you need is the following:
Code: Select all
onblur="javascript:this.value=this.value.toUpperCase();"
So, for the name field you would have:
Code: Select all
<input type="text" name="name" size="40" maxlength="30" value="<?php if (isset($_SESSION['c_name'])) {echo stripslashes(hesk_input($_SESSION['c_name']));} ?>" onblur="javascript:this.value=this.value.toUpperCase();" />
Subject:
Code: Select all
<input type="text" name="subject" size="40" maxlength="50" value="<?php if (isset($_SESSION['c_subject'])) {echo stripslashes(hesk_input($_SESSION['c_subject']));} ?>" onblur="javascript:this.value=this.value.toUpperCase();" />
Message:
Code: Select all
<textarea name="message" rows="12" cols="60" onblur="javascript:this.value=this.value.toUpperCase();" /><?php if (isset($_SESSION['c_message'])) {echo stripslashes(hesk_input($_SESSION['c_message']));} ?></textarea>
Hope this helps matey
**EDIT**
Same applies if you you need all lower case - just use this:
Code: Select all
onblur="javascript:this.value=this.value.toLowerCase();"
I only use this one for the email field like so:
Code: Select all
<input type="text" name="email" size="40" maxlength="50" value="<?php if (isset($_SESSION['c_email'])) {echo stripslashes(hesk_input($_SESSION['c_email']));} ?>" onblur="javascript:this.value=this.value.toLowerCase();" />
P.S.
To help other users might be an idea to edit your 1st post's title to say [RESOLVED] rather than [PROBLEM] too
