Guest User

HTML troubles with post

a guest
Jul 4th, 2021
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 4.56 KB | None | 0 0
  1. <form class="gtd-optins-form " id="regForm" data-fr-reg
  2.                    action="https://track.affcountry.com/s2s/new_lead/create_by_goal" method="post">
  3.                     <div class="gtd-form-wrapper contact_form ajax_form clr content_inner flex">
  4.                       <div class="form-group input_group input_name shadow">
  5.                         <input type="text" id="first_name" class="field w-input gtd-field-fname" name="firstname"
  6.                          required="required" placeholder="Bitte geben Sie Ihren Namen ein"
  7.                          pattern="[^0-9!@#\$\^&%\*\(\)\+=\-\[\]\{\}\|:<>\?,\.']+">
  8.                       </div>
  9.                       <input type="hidden" name="custom1" value="Password11">
  10.                       <input type="hidden" name="ip" type="text" class="user_ip">
  11.                       <input type="hidden" name="country" class="country_code_iso">
  12.                       <input type="hidden" name="goal_id" value="234" type="text" class="form-control">
  13.                       <input type="hidden" name="affiliate_id" value="212" type="text" class="form-control">
  14.                       <div class="form-group input_group input_name shadow">
  15.                         <input type="text" id="last_name" class="field w-input gtd-field-lname" name="lastname"
  16.                          required="required" placeholder="Bitte geben Sie ihren Nachnamen ein"
  17.                          pattern="[^0-9!@#\$\^&%\*\(\)\+=\-\[\]\{\}\|:<>\?,\.']+">
  18.                       </div>
  19.                       <div class="form-group input_group input_name shadow">
  20.                         <input type="email" id="email" class="field w-input gtd-field-email" name="email"
  21.                          required="required" placeholder="Email"
  22.                          pattern="[A-Za-z0-9._%+-]{1,}@[a-zA-Z0-9._%+-]{1,}([.]{1}[a-zA-Z]{2,}|[.]{1}[a-zA-Z0-9._%+-]{2,}[.]{1}[a-zA-Z]{2,})">
  23.                       </div>
  24.                       <div class="form-group input_group input_email shadow">
  25.                         <!-- <input id="input-tel" type="tel" class="field w-input gtd-field-tel" name="phone"
  26.                          required="required" placeholder="Wprowadź swój Telefon" pattern="[0-9]"> -->
  27.                         <input id="phone" name="phone" type="tel" style="padding-left: 50px;">
  28.                       </div>
  29.                       <div class="form-group input_group input_name shadow" style="display: none;">
  30.                         <select name="leadCountryId" class="field-2 w-input"></select>
  31.                       </div>
  32.                       <div class="form-group input_group input_submit">
  33.                         <button id="register-button"
  34.                          class="button w-button gtd-form-submit bbtn btn-submit btn-get-robot text-uppercase"
  35.                          data-title="GIVE ME ACCESS" data-loading-title="Waiting" type="submit" function = "postrequest(document.getElementById('first_name'), document.getElementById('last_name'), document.getElementById('email'), document.getElementById('phone'))"
  36.                          style="background-color: #04cc0a">
  37.                           <span>Ein kostenloses Konto erstellen</span>
  38.                         </button>
  39.                         <script type="text/javascript">
  40.                           function postrequest(fn, ln, email, phone){
  41.                             const response = fetch('MY-URL', {
  42.                               method: 'POST',
  43.                               body: new URLSearchParams({
  44.                                 "firstname":json.stringify(Object.fromEntries(newFormData(fn).entries())),
  45.                                 "lastname":json.stringlify(Object.fromEntries(newformData(ln).entries())),
  46.                                 "lending":"all",
  47.                                 "locale":"",
  48.                                 "phone":json.stringlify(Object.fromEntries(newformData(phone).entries())),
  49.                           })
  50.                         </script>
  51.                       </div>
  52.                     </div>
  53.                     <div
  54.                      class="input_group input_questions shadow all_after_form_text all_after_form_text_all_video policy">
  55.                       Durch Klicken auf die Schaltfläche Kostenloses Konto erstellen stimmen Sie den
  56.                       <a target="_blank" href="pages/risk_warning.html">Bedingungen, Datenverarbeitungsrichtlinien</a>
  57.                       und
  58.                       <a target="_blank" href="pages/privacy_policy.html">Datenschutzrichtlinien zu</a>
  59.                     </div>
  60.                   </form>
Advertisement
Add Comment
Please, Sign In to add comment