Here is how you can get admin form key in your frontend form. I used the admin form key to login from frontend to admin dashboard.
step1: create object
<?php $adminobj= new Mage_Adminhtml_Block_Template(); ?>
step2: I used the value in hidden field like below:
<input name="form_key" type="hidden" value="<?php echo $adminobj->getFormKey() ?>" />
step1: create object
<?php $adminobj= new Mage_Adminhtml_Block_Template(); ?>
step2: I used the value in hidden field like below:
<input name="form_key" type="hidden" value="<?php echo $adminobj->getFormKey() ?>" />
<input name="form_key" type="hidden" value="getFormKey() ?>" />
ReplyDelete