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?>"> Link to comment https://forums.phpfreaks.com/topic/123838-solved-best-way-to-protect-an-email-in-hidden-input/ 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("[email protected]", $subject, $body, $from); Link to comment https://forums.phpfreaks.com/topic/123838-solved-best-way-to-protect-an-email-in-hidden-input/#findComment-639389 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 Link to comment https://forums.phpfreaks.com/topic/123838-solved-best-way-to-protect-an-email-in-hidden-input/#findComment-639393 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 Link to comment https://forums.phpfreaks.com/topic/123838-solved-best-way-to-protect-an-email-in-hidden-input/#findComment-639394 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 Link to comment https://forums.phpfreaks.com/topic/123838-solved-best-way-to-protect-an-email-in-hidden-input/#findComment-639411 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.