tomjenkins12
asked on
cakephp, obfuscate,hash, form ids
I am using cakephp and the form helper
My form looks like this
<?= $form->create(info );?>
<?= $form->input('FirstOwner.f
<?= $form->input('FirstOwner.l
<?= $form->input('FirstOwner.f
<?= $form->input('FirstOwner.f
<?= $form->input('FirstOwner.f
<?= $form->input('FirstOwner.f
<?= $form->input('FirstOwner.f
<?= $form->input('FirstOwner.f
<?= $form->end(); ?>
The html output is
<div class="input text"><label for="FirstOwnerFname">Fnam
label><input name="data[FirstOwner][fna
maxlength="255" value="" id="FirstOwnerFname" /></div> <div
class="input text"><label for="FirstOwnerLname">Lnam
name="data[FirstOwner][lna
id="FirstOwnerLname" /></div>
how can i obfuscate/hash the id name and id?
I want it to produces something like
<div class="input text"><label for="FirstOwnerFname">Fnam
label><input name="5sdf65sf6g56asdf56as
value="" id="asd45a5sd4a5sd45ad" /
ASKER
thanks elvin66
<div class="input text"><label for="7313d9266b516ce2fced1 e401b08337 f89c84e15" >7313d9266 b516ce2fce d1e401b083 37f89c84e1 5</label>< input class="valid" name="data[7313d9266b516ce 2fced1e401 b08337f89c 84e15]" value="" id="7313d9266b516ce2fced1e 401b08337f 89c84e15" type="text"></div>
Im almost there
two issues
1. label name is now changed when i wanted just the form id changed
2. it now does not enter the results into the db for this filed. any suggestions?
<div class="input text"><label for="7313d9266b516ce2fced1
Im almost there
two issues
1. label name is now changed when i wanted just the form id changed
2. it now does not enter the results into the db for this filed. any suggestions?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
$form->MD5(input('FirstOwn