Reputation: 161
Is there any security benefit to using cryptic names for your form fields like so:
if (isset($_POST['submit_jw58dplem42pd45r'])){$submit = $_POST["submit_jw58dplem42pd45r"];} else {$submit ="";}
if (isset($_POST['txt_textbox_f48yjdp429plwdhp'])){$txt_textbox = $_POST["txt_textbox_f48yjdp429plwdhp"];} else {$txt_textbox ="";}
if ($submit=="submit"){
echo "$txt_textbox";
}
echo "<form method='post'>"
. "<input type='text' name='txt_textbox_f48yjdp429plwdhp' size='45' maxlength='45' value='Text Value Here'>"
. "<input type='hidden' name='submit_jw58dplem42pd45r' value='submit'>"
. "<input type='submit' value=' Submit '>"
. "</form>";
Upvotes: 2
Views: 39
Reputation: 540
No.
Security through obfuscation doesn't work, in this case there's absolutely no benefit whatsoever, you're just complicating things for no reason. The sites visitors still need to know what information to input, those indicators would be trivial to find using a bot (not that they are needed).
Upvotes: 2