function login() { var loginForm = document.getElementById("loginForm"); if (loginForm.username.value == "") { alert("Please enter your E-mail."); return false; } if (loginForm.password.value == "") { alert("Please enter your password."); return false; } loginForm.submit(); }and form is like this:-
| <formid="loginForm"action="http://www.pentimo.com/authenticate.php" method="post"> <input class="inputtext" style="width:100px" type="text" name="username" value=""/> | ||
| <label class="info_block_text" >Password:</label><input class="inputtext" style="width:100px" type="password" name="password" value=""/> | ||
| <a class="login_btn" onclick="login()" title="Click to login"></a> | ||
| ||
| can anyone tell how it can be done????pls.......... | ||
| can |
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment