forked from kaltura/DeveloperPortalDocs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
completeregistration.php
147 lines (129 loc) · 5.43 KB
/
completeregistration.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
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
---
layout: default
---
<?php
$firstname='';
$lastname='';
$email='';
$company='';
if (isset($_GET['firstname'])){
$firstname=strip_tags($_GET['firstname']);
}
if (isset($_GET['lastname'])){
$lastname=strip_tags($_GET['lastname']);
}
if (isset($_GET['email'])){
$email=strip_tags($_GET['email']);
}
if (isset($_GET['company'])){
$company=strip_tags($_GET['company']);
}
?>
<div class="w-section vpaas-sign-up-section">
<div class="w-container vpaas-signup-container">
<h1 class="section-headings vpaas-signup-heading">Schedule a free consultation with our expert</h1>
<div class="sml-circle-row-wrapper">
<div class="w-row sml-circle-row">
<div class="w-col w-col-3 sml-circle-column"></div>
</div>
</div>
<div >
<div class="radio-description">Hello <?php echo $firstname;?>,</br>To improve your experience with Kaltura VPaaS, please tell us more about yourself.</br>We'll contact you for a free consulting session on how to best implement your project.</div>
</div>
<div class="w-form">
<form id="register-form" name="register-form" data-name="Register Form" action="https://vpaas.kaltura.com:8443/post_completeregistration.php" method="post" onsubmit="return validate(event);">
<legend class="form-labels"><b>About you</b></legend><hr>
<div class="w-row form-row">
<div class="w-col w-col-6">
<label for="firstname" class="form-labels">First Name</label>
<input id="firstname" type="text" value="<?php echo $firstname;?>" name="firstname" class="w-input input-light" data-name="First Name" required="required">
</div>
<div class="w-col w-col-6">
<label for="lastname" class="form-labels">Last Name</label>
<input id="lastname" type="text" value="<?php echo $lastname;?>" name="lastname" class="w-input input-light" data-name="Last Name" required="required">
</div>
</div>
<div class="w-row form-row">
<div class="w-col w-col-6">
<label for="email" class="form-labels">Email</label>
<input id="email" type="text" value="<?php echo $email;?>" name="email" class="w-input input-light" data-name="Email" required="required">
</div>
<div class="w-col w-col-6">
<label for="title" class="form-labels">Job Title</label>
<input id="jobtitle" type="text" name="jobtitle" class="w-input input-light">
</div>
</div>
<div class="w-row form-row">
<div class="w-col w-col-6">
<label for="country" class="form-labels">Country</label>
<select id="country" name="country" data-name="Country" required="required" class="w-select input-light">
</select>
</div>
<script type="text/javascript">initCountry(""); </script>
<div class="w-col w-col-6">
<label for="Phone" class="form-labels">Phone</label>
<input id="phone" type="text" placeholder="" name="phone" required="required" data-name="Phone" class="w-input input-light">
</div>
</div>
<legend class="form-labels"><b>About your project</b></legend><hr>
<div class="w-row form-row">
<div class="w-col w-col-6">
<label for="what-are-you-building" class="form-labels">Please tell us about your project in as many details as possible</label>
<textarea id="what-are-you-building" name="what-are-you-building" data-name="" class="w-input input-light" required="required"></textarea>
</div>
<div class="w-col w-col-6">
<label for="specific-features" class="form-labels">Any specific features you are interested in?</label>
<textarea id="specific-features" name="specific-features" class="w-input input-light" required="required"></textarea>
</div>
</div>
<legend class="form-labels"><b>Help us be better</b></legend><hr>
<div class="w-row form-row">
<div class="w-col w-col-6">
<label for="how-did-you-hear-about-us" class="form-labels">How did you hear about us?</label>
<input id="how-did-you-hear-about-us" type="text" placeholder="" name="how-did-you-hear-about-us" data-name="" class="w-input input-light">
</div>
<div class="w-col w-col-6">
<label for="additional-questions" class="form-labels">Any suggestions or comments about Kaltura VPaaS?</label>
<input id="additional-questions" type="text" name="additional-questions" class="w-input input-light">
</div>
</div>
<div class="w-row form-row no-column-padding">
<div class="g-recaptcha" data-sitekey="6Lf2bx8TAAAAAFiXASujAbfTnbBr7H6cqUbHLnnE"></div>
</div>
</div>
</div>
<div class="button-center-div">
<input type="submit" id="submitButton" value="Submit" data-wait="Please wait..." data-ix="show-pick-account-type" class="w-button standard-button vpaas-signup-btn">
</div>
</form>
<div class="w-form-done"><p>Thank you! Your submission has been received!</p></div>
<div class="w-form-fail"><p>Oops! Something went wrong while submitting the form</p></div>
<script>
function validate(event)
{
if (!verify_recapcha()){
return false;
}
// this is needed only for browsers that do not support the HTML5 'required' attribute. AKA - Safari.
$('[required]').each(function() {
if ( this.id == 'email' ){
var mailformat = /^\w+([\.-]?\w+)*@\w+([\.-]?\w+)*(\.\w{2,3})+$/;
if(! $(this).val().match(mailformat)){
alert("Please input a valid email address");
$(this).focus();
event.preventDefault();
return false;
}
}
if ( $(this).val() == '' ){
alert("Please fill all fields.");
$(this).focus();
event.preventDefault();
return false;
}
});
$("#submitButton").prop('disabled', true);
$("#submitButton").prop('value', "Please wait...");
return true;
}
</script>