Welcome Guest, Not a member yet? Register   Sign In
custom validation rule for IP in form
#3

(12-12-2020, 11:49 PM)sammyskills Wrote: Of course you can.

You can add it as a hidden input field in your form and do your validation.

Code:
<input type="hidden" name="user_ip" value="<?php echo $request->getIPAddress(); ?>">
obviously that wont work as users will be able to edit it before posting the form
Reply


Messages In This Thread
custom validation rule for IP in form - by xPooky - 12-12-2020, 05:29 PM
RE: custom validation rule for IP in form - by xPooky - 12-13-2020, 05:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB