Jun 9th, 2013, 1:19 PM
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. e.g.
<td><input type="text" name="email"
value="<?php htmlspecialchars(@$fields["email"])?>" size="100">
This seems to work file. What I'd like to do is:
<?php
$str=@$fields["email"];
$md5Str = md5($str);
echo "<input type=hidden name=encrypted_email value=$md5Str />\n";
?>
What gets stored in the database in the encrypted_email field is a "/" so I'm not quite sure what is going on.
Any Ideas would be appreciated!
Thanks in advance,
Chris
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. e.g.
<td><input type="text" name="email"
value="<?php htmlspecialchars(@$fields["email"])?>" size="100">
This seems to work file. What I'd like to do is:
<?php
$str=@$fields["email"];
$md5Str = md5($str);
echo "<input type=hidden name=encrypted_email value=$md5Str />\n";
?>
What gets stored in the database in the encrypted_email field is a "/" so I'm not quite sure what is going on.
Any Ideas would be appreciated!
Thanks in advance,
Chris