-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnewaccount.php
More file actions
123 lines (114 loc) · 2.91 KB
/
Copy pathnewaccount.php
File metadata and controls
123 lines (114 loc) · 2.91 KB
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
<html>
<head>
<title>Database connection </title>
<style>
body {
background-image: url(back5.jpg);
background-repeat: no-repeat;
background-attachment: fixed;
background-size: 100% 100%;
opacity:1;
font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}
.glow {
font-size: 50px;
font-weight: bold;
color: white;
text-align: center;
position:relative;
margin-top: 100px;
text-shadow:
0 0 20px black,
0 0 30px blue,
0 0 40px skyblue,
0 0 50px skyblue,
0 0 60px skyblue,
0 0 70px skyblue,
0 0 80px skyblue;
}
.button {
background-color: transparent;
color: white;
padding: 4px 2px;
font-family: 'Courier New', Courier, monospace;
font-size: 40px;
margin-left: 80px;
margin-top: 50px;
text-shadow:
0 0 20px black,
0 0 30px yellowgreen,
0 0 40px yellow,
0 0 50px yellow;
}
form{
text-align: center;
font-family: 'Courier New', Courier, monospace;
font-size: 35px;
font-weight: bold;
position:relative;
color: white;
padding: 20px 40px;
}
img{
width:500px;
height:800px;
margin-left:400px;
position:absolute;
}
</style>
</head>
<body>
<hr>
<img src="backLogin.jpg">
<h1 class="glow"><u>Create an Account</u></h1>
<form action="forms.php" method="post">
<label for="NAME">Name:</label><br>
<input type="text" id="NAME" name="NAME"><br>
<label for="PASSWORD">Password:</label><br>
<input type="text" id="PASSWORD" name="PASSWORD"><br>
<br>
<label for="GENDER">Gender:</label><br>
<select name="GENDER" id="GENDER">
<option value="M">Male</option>
<option value="F">Female</option>
</select>
<br>
<label for="AGE">Age:</label><br>
<input type="text" id="AGE" name="AGE"><br>
<br>
<label for="HEIGHT">Height(in cm):</label><br>
<input type="text" id="HEIGHT" name="HEIGHT"><br>
<br>
<label for="WEIGHT">Weight(in kgs):</label><br>
<input type="text" id="WEIGHT" name="WEIGHT"><br>
<br>
<label for="ACTIVITY">Activity:</label><br>
<select name="ACTIVITY" id="ACTIVITY">
<option value="Little">Little or no exercise</option>
<option value="Some">Somewhat active(1-3 days)</option>
<option value="High">Highly active</option>
</select>
<br>
<input type="submit" value="Create Account"/>
</form>
</body>
<?php // creating a database connection
$db_sid =
"(DESCRIPTION =
(ADDRESS = (PROTOCOL = TCP)(HOST=LAPTOP-VQD15OIM)(PORT = 1521))
(CONNECT_DATA =
(SERVER = DEDICATED)
(SERVICE_NAME = orcl.168.1.2)
)
)";
$db_user = "scott"; // Oracle username e.g "scott"
$db_pass = "1234"; // Password for user e.g "1234"
$con = oci_connect($db_user,$db_pass,$db_sid);
if($con){
echo "Oracle Connection Successful.";
}
else{
die('Could not connect to Oracle: ');
}
?>
</html>