Jun 14th, 2013, 10:04 AM
(Jun 9th, 2013, 1:19 PM)criley645 Wrote: Hello everyone,
I'm a real newbie to formtools but it seems like a great product.
I have a single page form where I'm trying to calculate a md5 from the value stored in the email field and write it in the database. I saw in examples in the tutorials where you could access these fields via the @$field hash.
I've resolved this issue by updating the $_POST hash once the form was submitted. Because this is server side processing, the only way you can get access to the values of the fields prior to POST is with javascript and I didn't want to go down that road. I didn't need any dynamic functionality so server side processing worked fine for me. here is a code snippet if anyone can find it useful.
if (isset($_POST["submit"]))
{
// Add encrypted email to the field set
$_POST["encrypted_email"]=md5($_POST['email']);
//