Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

yii2 csrf custom form

<form method="post">
    <input type="hidden" name="<?= Yii::$app->request->csrfParam; ?>" value="<?= Yii::$app->request->csrfToken; ?>" />
    <button type="submit"> Save </button>
</form>
 
PREVIOUS NEXT
Tagged: #csrf #custom #form
ADD COMMENT
Topic
Name
3+3 =