This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<script type="text/javascript"> | |
function play() {} | |
</script> | |
<h1> Tic-tac-toe </h1> | |
<input type="radio" name="play" value="11"> | |
<input type="radio" name="play" value="12"> | |
<input type="radio" name="play" value="13"> | |
<br> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<script type=text/javascript> | |
let some_number = 1; | |
alert(some_number); | |
</script> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<script type=text/javascript> | |
alert("Hello World!"); | |
</script> | |
</html> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Insert data to database | |
if ($_POST["liked"] === "yes") { | |
$vote = TRUE; | |
} else { | |
$vote = FALSE; | |
} | |
$insert = "INSERT INTO vote (id, liked) VALUES ('" . $_SERVER['REMOTE_ADDR'] . "', " . $vote . ")"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<!-- SAME OLD CRAP --> | |
<?php | |
$servername = "localhost"; | |
$username = "gabriel"; | |
$password = "my_secret_password"; | |
$dbname = "herschel"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<!-- SAME OLD CRAP --> | |
<?php | |
$servername = "localhost"; | |
$username = "gabriel"; | |
$password = "my_secret_password"; | |
$dbname = "herschel"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<!-- SAME OLD CRAP --> | |
<?php | |
$servername = "localhost"; | |
$username = "root"; | |
$password = "my_root_password"; | |
$dbname = "herschel"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<h1> Telling your IP </h1> | |
<?php | |
echo "Your IP is " . $_SERVER['REMOTE_ADDR']; | |
?> | |
</html> |