-
Notifications
You must be signed in to change notification settings - Fork 0
/
form.html
150 lines (119 loc) · 5.22 KB
/
form.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
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<!DOCTYPE html>
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src=“https://www.googletagmanager.com/gtag/js?id=UA-122001802-1“></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag(‘js’, new Date());
gtag(‘config’, ‘UA-122001802-1’);
</script>
<!-- End Script -->
<!-- Google Tag Manager -->
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({‘gtm.start’:
new Date().getTime(),event:‘gtm.js’});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!=‘dataLayer’?‘&l=‘+l:‘’;j.async=true;j.src='https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,‘script’,‘dataLayer’,‘GTM-K483NZK’);</script>
<!-- End Google Tag Manager -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>form</title>
<link type="text/css" href="css/bootstrap.min.css" rel="stylesheet">
<link type="text/css" href="css/font-awesome.min.css" rel="stylesheet">
<link type="text/css" href="css/animate.min.css" rel="stylesheet">
<link type="text/css" href="css/form.css" rel="stylesheet">
<link type="text/css" href="css/animate.css" rel="stylesheet">
<!-- <link type="text/css" href="css/owl.carousal.min.css" rel="stylesheet"> -->
<link type="text/css" href="css/responsive.css" rel="stylesheet">
<script src="js/jquery-2.1.1.min.js" type="text/javascript"></script>
<script src="js/bootstrap.min.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
$("#contactForm").submit(function(e) {
var url = "http://api.stackby.com:3010/api/marketactions/new/create"; // the script where you handle the form input.
// var url = "http://localhost:3000/api/marketactions/new/create"; // the script where you handle the form input.
console.log($("#contactForm").serialize());
$.ajax({
type: "POST",
url: url,
data: $("#contactForm").serialize(), // serializes the form's elements.
success: function(data)
{
console.log("data:::::::::::::::::",data);
// alert(data); // show response from the php script.
window.location.href = "response.html";
}
});
e.preventDefault(); // avoid to execute the actual submit of the form.
});
});
</script>
</head>
<body>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src=“https://www.googletagmanager.com/ns.html?id=GTM-K483NZK”
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<div class="header container-fluid">
<div class="container">
<div class="row">
<div class="col-lg-4"></div>
<div class="col-lg-4">
<div class="banner-img text-center">
<img src="img/feature.jpg" class="img-responsive bounce animated">
</div>
<div class="bannertext text-center"><h2>Tell us a bit about you!</h2></div>
</div>
<div class="col-lg-4"></div>
</div>
<div class="row">
<div class="col-lg-4"></div>
<div class="col-lg-4">
<form name="f1" id="contactForm" method="POST">
<div class="form-group container-fluid">
<label for="fname">First Name</label>
<input type="text " class="form-control " id="fname" name="firstName" required >
</div>
<div class="form-group container-fluid">
<label for="lname">Last Name</label>
<input type="text" class="form-control" id="lname" name="lastName" required>
</div>
<div class="form-group container-fluid">
<label for="email">Work email</label>
<input type="email" class="form-control" id="email" name="email" required>
</div>
<div class="form-group container-fluid">
<label for="cname">Company Name</label>
<input type="text" class="form-control" id="cname" name="companyName" required>
</div>
<div class="form-group container-fluid">
<label for="function">Function</label>
<select class="form-control" id="function" name="function" required>
<option> </option>
<option value="Sales">Sales</option>
<option value="Marketing & Branding">Marketing & Branding</option>
<option value="Customer Development">Customer Development</option>
<option value="Product Management">Product Management</option>
<option value="Customer Service">Customer Service</option>
<option value="Operations">Operations</option>
<option value="Finance">Finance</option>
<option value="Strategy">Strategy</option>
<option value="IT">IT</option>
<option value="Other">Other</option>
</select>
</div>
<div class="form-group container-fluid">
<label for="pcases"> Primary Use-Cases</label>
<textarea rows="6" col="4" class="form-control" id="pcases" name="primaryUseCases" required></textarea>
</div>
<!-- <button type="submit" input type="submit" onclick="myfunction()" value="submit" class="btn btn-primary center-block">Sign Up</button> -->
<input type="submit" name="" value="Sign Up" class="btn btn-primary center-block">
</form>
</div>
<div class="col-lg-4"></div>
</div>
</div>
</div>
</body>
</html>