Skip to content

Instantly share code, notes, and snippets.

@dessso
dessso / 01Email_Encryptor.php
Created August 31, 2014 20:05
PHP exam 29 August Evening 01. Email Encryptor
<?php
$recipient = $_GET['recipient'];
$subject = $_GET['subject'];
$body = $_GET['body'];
$key = $_GET['key'];
$formattedRecipient = htmlspecialchars($recipient);
$formattedSubject = htmlspecialchars($subject);
$formattedBody = htmlspecialchars($body);
@dessso
dessso / 1.problemexamJavacript28.07.2014S
Created July 31, 2014 10:14
exam 28.07.2014 JavaScript first problem
function solve(input) {
var first = Number(input[0]);
var second = Number(input[1]);
console.log('<ul>');
var together = [];
for (var i = first; i <= second; i++) {