There is the following form:

<form> <div class="col-12"> <input type="name" class="name-form" name="name" data-name="Имя" placeholder="Ваше имя" required="" minlength="3" /> </div> <div class="col-12"> <input type="tel" class="tel-form" name="tel" data-name="Телефон" placeholder="Номер телефона" required="" /> </div> <div class="col-12"> <input hidden name="ip" value="<?php echo $_SERVER['REMOTE_ADDR']; ?>" class="hidden-input" /> </div> <div class="col-12"> <button type="submit" onclick="yaCounter47297391.reachGoal('zayavka'); return true;" class="btn">отправить заявку</button> </div> <div class="col-12"> <p class="lock"><i class="fas fa-lock"></i> гарантируем неразглашение Ваших данных</p> </div> </form> 

The problem in this line is:

<input hidden name="ip" value="<?php echo $_SERVER['REMOTE_ADDR']; ?>" class="hidden-input" />

I need this line to transmit the IP of the one who will leave the application, but the following comes to the post office ... Tell me, what is the error? enter image description here

  • The file is not processed by the PHP interpreter. File extension what? Rename to .php or add a rule via .htaccess - Total Pusher
  • Renamed, but the problem remained - OldHuman
  • Run on the server? - Misha Saidov

0