<reponame>anushkadixit1708/Projects_CSE<gh_stars>0<!DOCTYPE html>
<html>
<head>
   <title>XSS Level 1</title>
   <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
</head>
<body>
	
	 <div style="background-color:#c9c9c9;padding:15px;">
      <button class="btn btn-primary" type="button" name="homeButton" onclick="location.href='../homepage.html';">Home Page</button>
      <button class="btn btn-primary" type="button" name="mainButton" onclick="location.href='xssmainpage.html';">Main Page</button>
    </div>
<div align="center">
   <form method="GET" action="" name="form">
      <p></p>
   Enter name: <input type="text" name="user">
   <input type="submit" name="submit" value="Submit">
   </form>
</div><hr>

<?php
if(isset($_GET["user"])){
   $user = $_GET["user"];
	echo "<p align=center>Your name is $user</p>";
}
?>
</body>
</html>