Skip to content

shubanker/DynamicFields

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic Fields Names

A small class written in PHP which can help you hide real fields name of your forms by replacing it with some random string. It uses session to store key and time

This requires no extra configuration,you just need to include this file in your script and pass the form name you wish into a function as shown shown below in the example.

<input type="text" name="<?php echo $dynamicFields->DynamicName("userName")?>"/>

The fields are set to their original names as soon as the object is created,or you can choose to do it manually like.

$dynamicFields=new DynamicFields(false);

And you can populate $_POST with original names by.

$dynamicFields->setOriginalElementNames();

Please look at Demo File for its working Demo.

License

See the LICENSE file for license rights and limitations (MIT).

About

PHP class to hide real form fields names in forms

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages