xoligy Posted September 11, 2008 Share Posted September 11, 2008 What would be the best way to protect and email address on a hidden object? <input type="hidden" name="business" value="<?=$adminpaypal?>"> Quote Link to comment Share on other sites More sharing options...
Brian W Posted September 11, 2008 Share Posted September 11, 2008 If your using mail(), it will be hidden. I hope it helps... mail("youremail@domain.com", $subject, $body, $from); Quote Link to comment Share on other sites More sharing options...
xoligy Posted September 11, 2008 Author Share Posted September 11, 2008 Not really its for purchasing something from the site Quote Link to comment Share on other sites More sharing options...
tmbrown Posted September 11, 2008 Share Posted September 11, 2008 encode it example <?php function Encode($str){ $cypher1 = md5(15686895356); $cypher2 = sha1(15683215661); $str = bin2hex($str); return $cypher2.$str.$cypher1; } ?> <input type="hidden" name="business" value="<?php echo(Encode($adminpaypal)); ?>" /> Once the form is submitted <?php function Decode($hash){ $cypher1 = md5(15686895356); $str = substr($hash,0,strpos($hash,$cypher1)); $hash = pack("H*",$str); return $hash; } $_POST['business'] = Decode($_POST['business']); Or something similar Quote Link to comment Share on other sites More sharing options...
xoligy Posted September 11, 2008 Author Share Posted September 11, 2008 Thanks tmbrown will give it ago and see what happend Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.