Category : superglobals

I am trying to create a basic captcha page for a site that I am working on. I am wondering if there is another way to do this without having to use super globals. <?php use GregwarCaptchaCaptchaBuilder; use GregwarCaptchaPhraseBuilder; /* Captcha Creation */ $captcha = new CaptchaBuilder(); $captcha->build(); session_start(); if ($_SERVER[‘REQUEST_METHOD’] == ‘POST’) { // ..

Read more

I’m looking for an alternative to get the data inside the $_FILES due to a codacy issue I don’t know how to don’t use directly the superglobals. I can’t use filter_input like I did for resolve the same issue with $_POST Below this, my form : <form class="d-flex flex-column" method="post" action="/image/update/99/trick/144" enctype="multipart/form-data"> <input type="file" name="newImg"> ..

Read more