New to prepared statements, and I don't know how I would go about implementing it in RevCMS.
Would it be safe to just create a method in class.engine like this to get the connection:
To then accessing it through class.users:
I'm all in for learning, and asking here as this is one of the things...
Trying to allow linebreaks in my comment section of the news page, but I can't seem to keep the linebreaks after filtering, and I've been struggling with it for a long, so I thought I'd ask for help here.
This is the process of the comment with filtering:
And the secure method:
This interfers...
I'm still not able to post the comment, as the two values end up being different when i submit the form.
When submitting the form and echoing out this:
It gives me two different values:
I am not aware what I'm doing wrong.
<?php
$formToken = uniqid();
$_SESSION['form-token'] =...
Are you familiar with using this type of methods to avoid duplication? Seems like there is a short delay when I submit the form, making the $_SESSION not match up with the current uniqid();, making it useless.
Would i be fine implementing this method into RevCMS to prevent my forms from duplicating when refreshed?
https://arjunphp.com/prevent-multiple-form-submissions-php/
Thanks.