dtommy79
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forums
Events
Posts posted by dtommy79
-
-
Hi,
I'm trying to add php code into my URL. I have the following code:
<div class="btn-group" style="padding-left: 20px;" role="group"> <a href="<?php echo $_SERVER['HTTP_HOST']; ?>/09php/html_forms.php"><button type="button" class="btn btn-default">Go back to the form</button></a> </div>
The link should take me to: http://localhost:8080/09php/html_forms.php
The URL is correct, but the browser cannot access it.
What am I doing wrong?
Thanks
$_SERVER[‘HTTP_HOST’] in href?
in PHP
Posted
Thanks