faure Posted February 9, 2018 Report Share Posted February 9, 2018 <?php session_start(); $_SESSION['img']="c:\abc5\cmahj.jpg"; ?> <!DOCTYPE HTML> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="https://www.w3schools.com/w3css/4/w3.css"> <html> <body> <div class="w3-circle"> <h2>The w3-circle Class</h2> <img src="<?php echo $_SESSION['img'] ?>' class="w3-circle" alt="Car" style="width:100px"> <!-- NOT WORKING !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> </div> </body> </html> Link to comment Share on other sites More sharing options...
Ingolme Posted February 9, 2018 Report Share Posted February 9, 2018 In what way is it not working? What is the expected result and what is the result you actually got? Link to comment Share on other sites More sharing options...
dsonesuk Posted February 9, 2018 Report Share Posted February 9, 2018 You have errors in html (validate html before posting), PHP, and you are attempting to link to file by going through operating system directories instead of web root directory. That is why it fails Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now