Hi all. I need some help.
I want to display username after user has login. I am currently using Visual Studio and Javascript. Not using any PHP page.
What should i do?
This is my home.html page:
<!DOCTYPE html>
<html>
<head>
<!--Customize the content security policy in the meta tag below as needed. Add 'unsafe-inline' to default-src to enable inline JavaScript. For details, see http://go.microsoft.com/fwlink/?LinkID=617521-->
<meta http-equiv="Content-Security-Policy" content="default-src 'self' data: gap: https://ssl.gstatic.com 'unsafe-eval'; style-src 'self' 'unsafe-inline'; media-src *">
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta name="format-detection" content="telephone=no">
<meta name="msapplication-tap-highlight" content="no">
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width"> <link rel="stylesheet" type="text/css" href="css/index.css">
<link rel="stylesheet" href="css/jquery.mobile-1.4.5.css"> <script src="lib/jquery-1.11.2.min.js"></script>
<script src="lib/jquery.mobile-1.4.5.min.js"></script>
<script src="lib/jquery.validate.min.js"></script>
<script src="scripts/common.js"></script>
<script src="scripts/home.js"></script>
<title>Reminder Box</title> </head>
<body>
<div data-role="page" id="front-page">
<div data-role="header" class="header" data-position="fixed" id="header"> </div>
<div role="main" class="ui-content" id="main-ui">
<div data-role="content" class="ui-content">
<Center><p>»»——Welcome, <?php echo $_SESSION['name'];?>!——««</p></Center>
<Center><h3><b>Medication Reminder Box</b></h3></Center>
</div>
</div>
</div>
<script type="text/javascript" src="cordova.js"></script> <script type="text/javascript" src="scripts/platformOverrides.js"></script>
<footer data-role="footer" data-position="fixed">
<h4>Copyright 2017</h4> </footer>
</body>
</html>
Thanks alot!