close ad
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

convert form persist value to upercase

Thread began 2/02/2023 7:09 am by s.joiner74419001 | Last modified 2/10/2023 3:09 pm by s.joiner74419001 | 108 views | 2 replies


convert form persist value to upercase

I have a multi step form ( 3 steps ) which uses form persist to hold the input values and bind them to the insert behaviours on step 3.

Step 2 has the following input field with a text-transform style so it views in uppercase no-matter what is entered.

<input type="text" class="form-control col-md-3" id="birth_1" name="birth_1" style="text-transform: uppercase" aria-describedby="birth_1_label"
placeholder="First three letters ONLY of place of birth" value="<?php echo(WA_getSavedFormValue("consentB","birth_1")) ?>">

I have then tried to use 'strtoupper' on the insert behaviour on step 3 as follows:

if (isset($_POST["submit-consent-s"]) && $rsConsLeaseholders->getColumnVal("total_flats") <= 10) {
$InsertQuery = new WA_MySQLi_Query($RTMFi);
$InsertQuery->Action = "insert";
$InsertQuery->Table = "reg_owners_security";
$InsertQuery->bindColumn("owner_id", "i", "".$_SESSION['ownerID'] ."", "WA_DEFAULT");
$InsertQuery->bindColumn("birth_1", "s", "".strtoupper((WA_getSavedFormValue("consentB","birth_1"))) ."", "WA_DEFAULT");

$InsertGoTo = "";
if (function_exists("rel2abs")) $InsertGoTo = $InsertGoTo?rel2abs($InsertGoTo,dirname(__FILE__)):"";

But this does not convert the database entry to uppercase.

Any ideas Ray?
I've attached the two pages if it helps!

Thanks in advance!

Attached Files

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...