Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if(isset($_POST['register'])) {
- session_start();
- $username=$_POST['username'];
- $password=$_POST['password'];
- $email=$_POST['email'];
- $birthday=$_POST['birthday'];
- $sql = $con->query("INSERT INTO users (username, password, email, birthday)VALUES({'$username}', '{$password}', '{$email}', '{$birthday}'");
- }
- $key = '6LfjXCITAAAAALsTlmkF2yUBM4dzr7SSsD3wPhNf';
- $url = 'https://www.google.com/recaptcha/api/siteverify';
- $response = file_get_contents($url . "?secret=" . $key . "&response=" . $_POST['g-recaptcha-response'] . "&remoteip=" . $_SERVER['REMOTE_ADDR']);
- $data = json_decode($response);
- if(isset($data->success) AND $data->success==true) {
- }
- ?>
- <html lang="he">
- <script src='https://www.google.com/recaptcha/api.js'></script>
- <meta charset="utf-8" />
- <body background="https://srv214.gif.co.il/images/79713274H.jpg" dir="rtl">
- <title>הרשמה</title>
- <center>
- <a href="http://mworld.pe.hu/index.php">
- <img src="https://srv214.gif.co.il/images/606805logo.png">
- </a>
- <font face="segoe ui" size="5" color="black">
- <h6>טופס הרשמה לאתר</h6>
- <form method="post" action="success.php">
- <table border="0">
- <td>
- <center>
- <font size=5>
- שם משתמש:<input type="text" name="username" required='required'>
- <br />
- סיסמת כניסה:<input type="password" name="pass" required='required'>
- <br />
- כתובת דוא''ל:<input type="text" name="email" required='required'>
- <br />
- תאריך הלידה:<input type="date" name="birthday" required='required'>
- <br /></font><br />
- <font size=3>
- <input type="checkbox" name="agree" value="agree"> אני מאשר כי קראתי את תנאי השימוש ואני מעל לגיל 12.<br /></font>
- <div class="g-recaptcha" data-sitekey="6LfjXCITAAAAALsTlmkF2yUBM4dzr7SSsD3wPhNf"></div>
- <p>
- <button type='submit' style="background-color: #4CAF50; /* darkred */
- border: none;
- color: white;
- padding: 8px 15px;
- text-align: center;
- text-decoration: none;
- display: inline-block;
- font-size: 16px;
- box-shadow: 3px 5px 5px #888888;
- ">הירשם</button>
- </form></td></table>
- </font>
- <img src="https://srv214.gif.co.il/images/433331warning.png" style="width: 1000px;
- height: 105px;"></img>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement