4
I am creating a captcha in a registration form, and I am calling the image with a php command, but the captcha image does not appear in the form, and when I enter the browser console the php code is commented.
Code in the editor looks like this:
<?php require_once('imagem_seguranca.php'); ?>
And on the console appears commented like this:
<!--<?php require_once('imagem_seguranca.php'); ?>-->
File code 'image-security.php'
<?php $imagem = mt_rand(0,4);?>
<img src="captcha.php?iu=<?php echo $imagem; ?>" />
Local or on remote server?
– Rodrigo Rigotti
Can you put more code together? just this bit gives no idea what the problem might be...
– Sergio
What is the name of the file that has this part? ->
<?php require_once('imagem_seguranca.php'); ?>
– Jéf Bueno
form_captcha.php
– william rodrigues
Make sure the extension is as
.php
and not.html
. If you’re right, edit the question and put more details...– Jéf Bueno