-
Notifications
You must be signed in to change notification settings - Fork 2
/
moredetails.html
67 lines (51 loc) · 2.51 KB
/
moredetails.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Complete Your Profile - Social Impact Bond Platform</title>
<link rel="stylesheet" href="followup.css">
</head>
<body>
<div class="form-container">
<h1>Complete Your Profile</h1>
<p>Please fill in the details below to get the most out of your experience.</p>
<form id="profile-form" onsubmit="submitForm(event)">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
<label for="age">Age:</label>
<input type="number" id="age" name="age" required>
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
<label for="phone">Phone:</label>
<input type="tel" id="phone" name="phone" required>
<label for="college">College:</label>
<input type="text" id="college" name="college" required>
<label for="batch">Batch:</label>
<input type="text" id="batch" name="batch" required>
<label for="degree">Degree:</label>
<input type="text" id="degree" name="Degree" required>
<label for="linkedin">LinkedIn:</label>
<input type="url" id="linkedin" name="linkedin" required>
<label for="domains">Domains you're working on:</label>
<input type="text" id="domains" name="domains" placeholder="Enter four domains" required>
<label for="projects">Projects:</label>
<textarea id="projects" name="projects" rows="4" placeholder="Brief description of your projects" required></textarea>
<button type="submit" onclick="window.location.href='profile.html'">Save and View Profile</button>
</form>
</div>
<script>
function submitForm(event) {
event.preventDefault();
// Collect user data
const formData = new FormData(document.getElementById('profile-form'));
const userProfile = {};
formData.forEach((value, key) => userProfile[key] = value);
// Store user profile in local storage (for this example)
localStorage.setItem('userProfile', JSON.stringify(userProfile));
// Redirect to the profile page
window.location.href = "profile.html";
}
</script>
</body>
</html>