Welcome Guest, Not a member yet? Register   Sign In
Error in field form_hidden

Form_hidden box is where I want to put an IP

<?php echo form_hidden('ip_address', $REMOTE_ADDR);?>

and is an error:

A PHP Error was encountered
Severity: Notice
Message: Undefined variable: REMOTE_ADDR
Filename: views/form.php
Line Number: 19

What am I doing wrong?

Probably not defined the variable. Can you show the code in the controller where you create the variable, and pass of to your view?

Theme © iAndrew 2016 - Forum software by © MyBB