you dont really hide them - you just rename them you need to start off at a totally different angle - in particular: http://www.dereuromark.de/2010/09/21/saving-model-data-and-security/
On 15 Mrz., 16:30, arron <[email protected]> wrote: > its not my only form of security i just wanted another layer to make > it harder for anyone to hack it. > whats wrong with making it harder for someone to know what your > database tables are? how can you hide them? is there a better way? > > On Mar 14, 5:15 pm, arron <[email protected]> wrote: > > > > > > > > > I want to hide my database fields and make it harder for people trying > > to spam me or hack it > > > On Mar 14, 5:08 pm, euromark <[email protected]> wrote: > > > > the question is > > > what do you want to achieve with this? other than making your life a > > > hell of a lot more difficult as a developer > > > > On 14 Mrz., 23:45, arron <[email protected]> wrote: > > > > > I have a form > > > > > <?= $form->create(info );?> > > > > <?= $form->input('FirstOwner.fname');?> > > > > <?= $form->input('FirstOwner.lname');?> > > > > <?= $form->input('FirstOwner.first_owner_title');?> > > > > <?= $form->input('FirstOwner.first_owner_precentage');?> > > > > <?= $form->input('FirstOwner.first_home_address');?> > > > > <?= $form->input('FirstOwner.first_owner_city');?> > > > > <?= $form->input('FirstOwner.first_owner_state');?> > > > > <?= $form->input('FirstOwner.first_owner_zip');?> > > > > <?= $form->end(); ?> > > > > > The html output is > > > > > <div class="input text"><label for="FirstOwnerFname">Fname</ > > > > label><input name="data[FirstOwner][fname]" type="text" > > > > maxlength="255" value="" id="FirstOwnerFname" /></div> <div > > > > class="input text"><label for="FirstOwnerLname">Lname</label><input > > > > name="data[FirstOwner][lname]" type="text" maxlength="255" value="" > > > > id="FirstOwnerLname" /></div> > > > > > how can iobfuscate/hash the id name and id? > > > > > I want it to produces something like > > > > > <div class="input text"><label for="FirstOwnerFname">Fname</ > > > > label><input name="5sdf65sf6g56asdf56as" type="text" maxlength="255" > > > > value="" id="asd45a5sd4a5sd45ad" / -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
