I have written an PHP form and tested it on WAMP server and was working fine.
When I got it into the webserver, the value tag on the input divs of the form, appeared on the page displaying the PHP code, instead of the $_POST value.
<form class="form-horizontal" role="form" method="post" action="contactos.php">
<!-- FORM RESULT -->
<div class="form-group">
<div class="col-sm-10 col-sm-offset-2">
<?php echo $result; ?>
</div>
</div>
<!-- END FORM RESULT -->
<!-- FORM NAME -->
<div class="form-group">
<label for="name" class="col-sm-2 control-label">Nome</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="name" name="name" placeholder="O seu nome." value="<?php echo htmlspecialchars(isset($_POST['name']) ? $_POST['name'] : ''); ?>"/>
<p class="text-danger">
<?php echo '$errName';?>
</p>
</div>
</div>
I can't really find out what's happening since it does work on WAMP server, but not on my webserver.
This is what I get on my webserver host.
PHP appearing on input form value tag picture
This is a fraction of the code since all the other inputs are a copy of the input div above to each other input.
Couldn't find any solution, so far. Any help would be appreciated.