-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathform.php
28 lines (24 loc) · 849 Bytes
/
form.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<html>
<body>
<?php
require "mysqlibackend.php";
$username = $_Post["username"];
$password = $_Post["password"];
$facebook = "https://www.facebook.com/".$_POST["facebook"];
$linkedin = "https://www.linkedin.com/in/".$_POST["linkedin"];
$instagram = "https://www.instagram.com/".$_POST["instagram"];
$twitter = "https://twitter.com/".$_POST["twitter"];
echo "Username: ".$username."<br>";
echo "Facebook: ".$facebook."<br>";
echo "LinkedIn: ".$linkedin."<br>";
echo "Instagram: ".$instagram."<br>";
echo "Twitter: ".$twitter."<br>";
$userbase = new UserTable;
$userbase->addUser($username, $password);
$userbase->addMedia($username, "facebook_name", $facebook);
$userbase->addMedia($username, "instagram", $instagram);
$userbase->addMedia($username, "linkedin", $linkedin);
$userbase->addMedia($username, "twitter", $twitter);
?>
</body>
</html>