Welcome Guest, Not a member yet? Register   Sign In
form validation for NOT matches
#13

[eluser]blorriman[/eluser]
Thanks for putting up with me, I really appreciate it.

Here it is with 'set first name' :

Code:
<div id="signup_form" class="span-10">
    <fieldset>
        <legend>Create New Account</legend>
    &lt;form action="http://localhost/login/create_member" method="post"&gt;&lt;input type="text" name="first_name" value="set first name" id="first_name" placeholder="First Name"  /><br>&lt;input type="text" name="last_name" value="last name"  /&gt;&lt;br>&lt;input type="text" name="email_address" value="email address"  /&gt;&lt;br>    &lt;input type="text" name="username" value="username"  /&gt;&lt;br>&lt;input type="text" name="password" value="password"  /&gt;&lt;br>&lt;input type="text" name="password2" value="confirm password"  /&gt;&lt;br>&lt;input type="submit" name="submit" value="create account"  /&gt;&lt;br>
        </fieldset>
</div>

and this is the code:

Code:
<div id="signup_form" class="span-10">
    <fieldset>
        <legend>Create New Account</legend>
    &lt;?php
        echo form_open('login/create_member');
        $data = array(
              'name'        => 'first_name',
              'id'          => 'first_name',
              'placeholder' => 'First Name',
              'value'       => set_value('first_name', 'set first name')
            );

        echo form_input($data). '<br>';
//        echo form_input('first_name', set_value('first_name', 'enter first name')). '<br>';
        echo form_input('last_name', set_value('last_name', 'last name')). '<br>';
        echo form_input('email_address', set_value('email_address', 'email address')). '<br>';
    ?&gt;
    &lt;?php
        echo form_input('username', set_value('username', 'username')). '<br>';
        echo form_input('password', set_value('password','password')). '<br>';
        echo form_input('password2', set_value('password2','confirm password')). '<br>';
        echo form_submit('submit', 'create account'). '<br>';
    ?&gt;

    &lt;?= validation_errors('<p class="error">');?&gt;
    </fieldset>
</div>

and here it is without 'set first name :

Code:
<div id="signup_form" class="span-10">
    <fieldset>
        <legend>Create New Account</legend>
    &lt;form action="http://localhost/login/create_member" method="post"&gt;&lt;input type="text" name="first_name" value="" id="first_name" placeholder="First Name"  /><br>&lt;input type="text" name="last_name" value="last name"  /&gt;&lt;br>&lt;input type="text" name="email_address" value="email address"  /&gt;&lt;br>    &lt;input type="text" name="username" value="username"  /&gt;&lt;br>&lt;input type="text" name="password" value="password"  /&gt;&lt;br>&lt;input type="text" name="password2" value="confirm password"  /&gt;&lt;br>&lt;input type="submit" name="submit" value="create account"  /&gt;&lt;br>
        </fieldset>
</div>

and here is the code :

Code:
<div id="signup_form" class="span-10">
    <fieldset>
        <legend>Create New Account</legend>
    &lt;?php
        echo form_open('login/create_member');
        $data = array(
              'name'        => 'first_name',
              'id'          => 'first_name',
              'placeholder' => 'First Name',
              'value'       => set_value('first_name')
            );

        echo form_input($data). '<br>';
//        echo form_input('first_name', set_value('first_name', 'enter first name')). '<br>';
        echo form_input('last_name', set_value('last_name', 'last name')). '<br>';
        echo form_input('email_address', set_value('email_address', 'email address')). '<br>';
    ?&gt;
    &lt;?php
        echo form_input('username', set_value('username', 'username')). '<br>';
        echo form_input('password', set_value('password','password')). '<br>';
        echo form_input('password2', set_value('password2','confirm password')). '<br>';
        echo form_submit('submit', 'create account'). '<br>';
    ?&gt;

    &lt;?= validation_errors('<p class="error">');?&gt;
    </fieldset>
</div>


Messages In This Thread
form validation for NOT matches - by El Forum - 01-19-2010, 02:33 PM
form validation for NOT matches - by El Forum - 01-19-2010, 03:01 PM
form validation for NOT matches - by El Forum - 01-19-2010, 03:51 PM
form validation for NOT matches - by El Forum - 01-19-2010, 03:55 PM
form validation for NOT matches - by El Forum - 01-19-2010, 04:51 PM
form validation for NOT matches - by El Forum - 01-19-2010, 04:52 PM
form validation for NOT matches - by El Forum - 01-19-2010, 05:05 PM
form validation for NOT matches - by El Forum - 01-19-2010, 05:06 PM
form validation for NOT matches - by El Forum - 01-19-2010, 05:21 PM
form validation for NOT matches - by El Forum - 01-19-2010, 05:26 PM
form validation for NOT matches - by El Forum - 01-19-2010, 05:39 PM
form validation for NOT matches - by El Forum - 01-19-2010, 05:41 PM
form validation for NOT matches - by El Forum - 01-19-2010, 05:56 PM
form validation for NOT matches - by El Forum - 01-19-2010, 06:02 PM
form validation for NOT matches - by El Forum - 01-19-2010, 06:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB