Welcome Guest, Not a member yet? Register   Sign In
Call to undefined form_open() error
#1

[eluser]01010011[/eluser]
Hi,

I am getting this error message:

Quote:Fatal error: Call to undefined function form_open() in C:\xampp\htdocs\myfile\system\application\views\signup_form.php on line 13

while using this code:

Code:
<!DOCTYPE html>
&lt;html lang="en"&gt;
&lt;head&gt;
    &lt;meta http-equiv="Content-Type" content="text/html; charset=utf-8"&gt;
    &lt;title&gt;Signup Form&lt;/title&gt;
&lt;/head&gt;
&lt;body&gt;

<div id="signup_form">

    <p class="heading">New User Signup</p>

    &lt;?php echo form_open('signup/submit'); ?&gt;

    <p>
        <label for="username">Username: </label>
        &lt;?php echo form_input('username'); ?&gt;
    </p>
    <p>
        <label for="password">Password: </label>
        &lt;?php echo form_password('password'); ?&gt;
    </p>
    <p>
        <label for="passconf">Confirm Password: </label>
        &lt;?php echo form_password('passconf'); ?&gt;
    </p>
    <p>
        <label for="email">E-mail: </label>
        &lt;?php echo form_input('email'); ?&gt;
    </p>
    <p>
        &lt;?php echo form_submit('submit','Create my account'); ?&gt;
    </p>

    &lt;?php echo form_close(); ?&gt;
</div>

&lt;/body&gt;
&lt;/html&gt;
Code:
&lt;?php

class Signup extends Controller {

    public function __construct() {
        parent::Controller();

        $this->load->helper(array('form','url'));
        $this->load->library('form_validation');
    }

    public function index() {
        $this->load->view('signup_form');
    }

}

Any ideas what could be causing this?


Messages In This Thread
Call to undefined form_open() error - by El Forum - 04-20-2010, 06:52 AM
Call to undefined form_open() error - by El Forum - 04-20-2010, 07:21 AM
Call to undefined form_open() error - by El Forum - 04-20-2010, 12:11 PM



Theme © iAndrew 2016 - Forum software by © MyBB