YaWK  24.1
Yet another WebKit
email.php
Go to the documentation of this file.
1 <?php
2 /**
3  * Copyright (C) Daniel Retzl
4  */
5 require_once '../../../classes/email.php';
6 if (isset($_GET['email']))
7 { // if no db object is set
8  if (!isset($db))
9  { // include database
10  require_once '../../../classes/db.php';
11  $db = new \YAWK\db();
12  }
13  $email = $_GET['email'];
14  if ($db->query("INSERT INTO {users} (username, email) VALUES('" . $email . "','" . $email . "'"))
15  {
16  echo "true";
17  }
18 }
print $_GET['id']
Definition: page-edit.php:357
$email
Definition: user-new.php:94