Welcome Guest, Not a member yet? Register   Sign In
Trouble while Integrating Query in CI
#3

[eluser]Mizanur Islam Laskar[/eluser]
VIEW File (SignUp.php):
Code:
<html >
<head>
<meta http-equiv="Content-Type" c>
<?php echo $metaTag1; ?>
<?php echo $metaTag2; ?>
<title><?php echo $title; ?></title>

<link rel="stylesheet" type="text/css" href="<?php echo "$base/$inner_css";?>">
<link rel="stylesheet" type="text/css" href="<?php echo "$base/$milk";?>">
<link rel="stylesheet" type="text/css" href="<?php echo "$base/$chili";?>">

[removed][removed]
[removed][removed]
[removed][removed]
[removed][removed]
[removed][removed]

[removed]
$(document).ready(function() {
    var validator = $("#signupform").validate({
        rules: {
            email: { required: true, email: true, remote: "<?php echo "$base/$check_email";?>" },
            password: { required: true, minlength: 6 },
            password_confirm: { required: true, minlength: 6, equalTo: "#password" },
            captcha: { required: true, minLength: 5, remote: "<?php echo "$base/$check_captcha";?>" }
        },
        messages: {
            email: { required: "Please enter a valid Email Address", minLength: "Please enter a valid Email Address", remote: jQuery.format("{0} is already in use") },
            password: { required: "Provide a password", rangelength: jQuery.format("Enter at least {0} characters") },
            password_confirm: { required: "Repeat your password", minLength: jQuery.format("Enter at least {0} characters"), equalTo: "Enter the same Password as above"
            },
            captcha: { required: "Please type the Verification Code", minLength: jQuery.format("Please type the {0}-digit Verification Code"), remote: jQuery.format("Please type the Verification Code")
            }
        },
        errorPlacement: function(error, element) {
            if ( element.is(":radio") ) error.appendTo( element.parent().next().next() );
            else if ( element.is(":checkbox") ) error.appendTo ( element.next() );
            else error.appendTo( element.parent().next() );
        },
        
        submitHandler: function() { document.getElementById('signupform').submit(); },
        success: function(label) { label.html(" ").addClass("checked"); }
    });
    
});
[removed]

</head>
<body>
<form id="signupform" name="signupform" autocomplete="off" method="post" acti>
                
    <table border="0" cellspacing="3" cellpadding="3">
                      
        <tr>
            <td class="label" valign="middle"><label id="lemail" for="email">Email Address</label></td>
            <td class="field" valign="middle">
            &lt;input class="input_txt" id="email" name="email" type="text" value="" size="30" maxlength="80" /&gt;
            <br /><font style="font-size:12px;">[ this will not be shared ]</font>
            </td>
            <td class="status" valign="middle"></td>
        </tr>
        
        <tr>
            <td class="label" valign="middle"><label id="lpassword" for="password">Password</label></td>
            <td class="field" valign="middle">&lt;input class="input_txt" id="password" name="password" type="password" value="" size="30" maxlength="50" /&gt;&lt;/td>
            <td class="status" valign="middle"></td>
        </tr>
        
        <tr>
            <td class="label" valign="middle"><label id="lpassword_confirm" for="password_confirm">Confirm Password</label></td>
            <td class="field" valign="middle">&lt;input class="input_txt" id="password_confirm" name="password_confirm" type="password" value="" size="30" maxlength="50" /&gt;&lt;/td>
            <td class="status" valign="middle"></td>
        </tr>
                      
         <tr>
            <td class="label" valign="middle"><label id="lcaptcha" for="captcha">Type what you see</label></td>
            <td class="field" valign="middle">
            <img >&nbsp;
            &lt;input class="input_txt" style="float:right;" id="captcha" name="captcha" value="" type="text" size="8" maxlength="8" /&gt;
            </td>
            <td class="status" valign="middle"></td>
         </tr>
                      
        <tr>
            <td class="label" valign="middle"><label id="lsignupsubmit" for="signupsubmit">Signup</label></td>
            <td class="field" colspan="2">
            &lt;input type="hidden" name="go" value="yes"&gt;&lt;input type="submit" name="btn" value="Continue">
            </td>
        </tr>
                      
    </table>
&lt;/form&gt;
        
&lt;/body&gt;
&lt;/html&gt;


Messages In This Thread
Trouble while Integrating Query in CI - by El Forum - 06-30-2008, 12:28 AM
Trouble while Integrating Query in CI - by El Forum - 06-30-2008, 12:48 AM
Trouble while Integrating Query in CI - by El Forum - 06-30-2008, 01:13 AM
Trouble while Integrating Query in CI - by El Forum - 06-30-2008, 02:04 AM
Trouble while Integrating Query in CI - by El Forum - 06-30-2008, 03:16 AM
Trouble while Integrating Query in CI - by El Forum - 06-30-2008, 03:32 AM
Trouble while Integrating Query in CI - by El Forum - 06-30-2008, 11:54 AM
Trouble while Integrating Query in CI - by El Forum - 06-30-2008, 12:45 PM
Trouble while Integrating Query in CI - by El Forum - 06-30-2008, 02:01 PM
Trouble while Integrating Query in CI - by El Forum - 06-30-2008, 02:14 PM
Trouble while Integrating Query in CI - by El Forum - 06-30-2008, 02:23 PM
Trouble while Integrating Query in CI - by El Forum - 06-30-2008, 02:55 PM



Theme © iAndrew 2016 - Forum software by © MyBB