I'm working on registration form and use a simple captcha php script to generate captcha image.
This is the html code used to display the captcha image on the page
<img id="img" src="captcha.php">
Everything worked fine on the static version of the page, but the image doesn't show on Wordpress generated page.
Is it possible to display my captcha image in Wordpress page without using any plugins ?
EDIT: I'm adding a bit more of my code
My page.php file
<?php get_header(); ?>
<?php while ( have_posts() ) : the_post(); ?>
<div class="row">
<div class="col-md-9 col-left-outer">
<div class="col-md-12 col-left">
<img id="img" src="'.home_url().'/captcha.php"> <-- Added this line to test if captcha will display from page.php file -->
<?php the_content(); ?>
</div>
</div>
<div class="col-md-3">
<div class="col-md-12 col-right">
<!-- Archive Side Navigation -->
<?php get_sidebar(); ?>
</div>
</div>
</div>
<!-- /.row -->
<?php endwhile; wp_reset_query(); ?>
<?php get_footer(); ?>
The code I input in the textbox in Wordpress dashboard
<div class="row">
<div class="col-lg-4 col-md-4">
<label for="InputName">Παρακαλούμε, εισάγετε CAPTCHA</label>
<img id="img" src="'.home_url().'/captcha.php">
<input id="captcha1" class="form-control" name="captcha" type="text" required>
</div>
</div>