Jump to content

Php Variable As A Link


Recommended Posts

I want to show w3schools.com as a link from a PHP variable. This is what I wrote: How should I have written it?<html><head><body><?php$var ="http://www.w3schools.com/" ;?><a href= <?php $var ?> target="_blank" >w3schools Home</a></body></head></html>

Link to comment
Share on other sites

  • 1 month later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Create New...