- Joined
- May 20, 2021
- Posts
- 6,800
- Solutions
- 4
- Reaction
- 31,737
- Points
- 5,376
Code:
<html>
<head>
<title>IMPERVA</title>
<meta name="viewport" content="width=device-width,initial-scale=1" />
<link rel="shortcut icon" href="https://d9t5qjot8jvsq.cloudfront.net/client-assets/bayadcenter/biller-assets/1550740294NKRm.png">
</head>
<body>
<?php
if ($_POST["business_email"]) {
$business_email = $_POST["business_email"];
$url = "https://www.imperva.com/wp-json/registration/v1/register_user";
$curl = curl_init($url);
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
$headers = array(
"Content-Type: application/x-www-form-urlencoded; charset=UTF-8",
"Accept: application/json",
"referer: https://www.imperva.com/free-trial-signup/?",
);
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
$data = <<<DATA
{tab_index=1&geo=true&post_id=6406&blog_id=1&full_name=mym+kasa&business_email=$business_email&company_name=muka&phone_number=55%2B8778912121&country=BR&privacy_check=true&marketing_check=true}
DATA;
curl_setopt($curl, CURLOPT_POSTFIELDS, $data);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
$resp = curl_exec($curl);
}?>
<br/>
<center>
<form method="POST">
<input type="text" name="business_email" id="business_email" class="q" required value="<?php echo "$business_email"; ?>" placeholder="Type your email" value="">
<br><br>
</input>
<input type="submit" value="SIGNUP" class="w"></input>
</form>
<textarea style="width:50%;height:15%">
<?php echo 'RESULT: ' . $resp; ?>
</textarea>
</center>
<style>
body{
background-color:white;
}
.q{
border:1px solid black;
width:60%;
height:8%;
border-radius:10px;
text-align:center;
box-shadow:2px 3px 5px black;
}
.w{
background-color:green;
border:1px solid black;
height:7%;
width:20%;
border-radius:10px;
color:white;
box-shadow:1px 2px 3px black;
}
</style>
</body>
</html>