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

[eluser]Unknown[/eluser]
Form_hidden box is where I want to put an IP

Code:
<?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?
#2

[eluser]Dam1an[/eluser]
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