While examining the HTML, PHP, JavaScript, etc., of vB's architecture, I'm stumped on a particular aspect of how it's all assembled to create a page. For this post I'll use the example of ACP > Settings > Options > Spam Management.
I viewed the HTML source of that page to get an idea of what's there, and I noticed that the form code looks like this (some values replaced with x's):
I see a data-cf-modified value, a hash value, and a security token. I also see more data-cf-modified values all through the HTML source code.
I've looked at many script files to see if I can determine how those values are generated, and can't seem wrap my head around it. So if I want to create a form for whatever reason, what scripts do I call to make everything work?
I realize it may not be a simply explanation, so I definitely appreciate the time anyone can take to explain it to me.
Thanks!
I viewed the HTML source of that page to get an idea of what's there, and I noticed that the form code looks like this (some values replaced with x's):
HTML Code:
<form action="options.php?do=dooptions" method="post" onsubmit="if (!window.__cfRLUnblockHandlers) return false; return count_errors()" name="optionsform" id="optionsform" data-cf-modified-xxxxxxxxxxxxxxxxxxxxxxxx-=""> <input type="hidden" name="do" id="do" value="dooptions" /> <input type="hidden" name="adminhash" value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" /> <input type="hidden" name="securitytoken" value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" />
I've looked at many script files to see if I can determine how those values are generated, and can't seem wrap my head around it. So if I want to create a form for whatever reason, what scripts do I call to make everything work?
I realize it may not be a simply explanation, so I definitely appreciate the time anyone can take to explain it to me.
Thanks!
Comment