$formaction = "".INFUSIONS."yourinfusion/target.php";
echo openform('inputform', 'post', $formaction, array('enctype' => 1,'class' => 'm-t-20'));
// Token data
$options['form_id'] = "12345678";
$options['max_tokens'] = "1";
$options['remote_url'] = fusion_get_settings('site_path').'infusions/myinfusion/post.php';
$token = \Defender\Token::generate_token($options['form_id'], $options['max_tokens'], $options['remote_url']);
// Begin Form
echo "<form id='".$options['form_id']."' name='postform' method='POST' action='".$options['remote_url']."'>\n";
echo "<input type='hidden' name='fusion_token' value='".$token."' />\n";
echo "<input type='hidden' name='form_id' value='".$options['form_id']."' />\n";
// Form content as usual
echo "</form>\n";
if (\defender::safe()) { // token is not error
// do secured stuff.
}
\defender::stop();
Category Forum
Upgrading issues - 9Labels
None yet
Statistics
3 participants
Notifications
You are not receiving notifications from this thread.
Related Questions