I am upgrading my files from phpmaker 2018 to 2024. This has been quite the project! In 2018, if I wanted to submit a custom form, I had to use the token_val. Do I need to submit a token for custom forms in 2024? The tokenval field no longer works. Thanks!
Example custom form:
$currenturl = $_SERVER["REQUEST_URI"];
$tokenname = TOKEN_NAME;
GLOBAL $class_schedule_list;
$tokenval = $class_schedule_list->Token;
$showcalbutton = '
<form action="'.$_SERVER['PHP_SELF'].'" method="post">
<input type="hidden" name="SubmitCheck" value="sent">
<input type="hidden" name="showcal" value = 1>
<input type="hidden" name="'.$tokenname.'" value="'.$tokenval.'">
<button type="submit" class="btn btn-sm btn-primary">
<span class="glyphicon glyphicon-calendar" aria-hidden="true"></span> Show Calendar</button>
</form>';
$hidecalbutton = '
<form action="'.$_SERVER['PHP_SELF'].'" method="post">
<input type="hidden" name="SubmitCheck" value="sent">
<input type="hidden" name="showcal" value = 0>
<input type="hidden" name="'.$tokenname.'" value="'.$tokenval.'">
<button type="submit" class="btn btn-sm btn-primary">
<span class="glyphicon glyphicon-remove-circle" aria-hidden="true"></span> Hide Calendar</button>
</form>';