Jump to content

subha rr

Members
  • Content Count

    20
  • Joined

  • Last visited

Community Reputation

0 Neutral

About subha rr

  • Rank
    Newbie
  1. Hi.....To find whether given value is present in an array or not. Enter the value into textbox and find whether the given value is found in array or not....How to write code in javascriptPls help meRegardsSubha
  2. Hi.....how do I check if a value is in an arrayvar arr = new Array('.com','.net','.org','.biz','.coop','.info','.museum','.name','.pro' ,'.edu','.gov','.int','.mil','.ac','.ad','.ae','.af','.ag','.ai','.al'...........);RegardsSubha
  3. Hi..... This array is used to check the domain extensions for validate a domain name.......How to write this code...Pls help..Regardssubha
  4. Hi...Multiple email ids seperated by commas..........Regardssubha
  5. hi.....I need some help on this email validation. I got a text box, can let the users to input many email with the seprator comma(,).Then how can i use the javascript to do a validation for it? plz help..i dont know how to code it. plz help on code.This is the script i am using for validation of single email id how to write javascript for validating multiple email id's ....Pls help meregardssubha
  6. This is the script i am using for validation of single email id how to write javascript for validating multiple email id's ....Pls help meregardssubha
  7. Hi...........Is there any javascript for validating multiple email id's ....Pls help me...regards subha
  8. Hi.......I need to validate the email address when submit the form using java script. When I enter one email address i have to validate the mail id. I unable to validateHow can i validate the email address when i click on the form .Pls help me..Regards,Subha
  9. subha rr

    Php Search Issue

    Hi.....below the php code for search name and date this code cannot display the search details...Pls help me
  10. hi....i want to set default date in my date search area (eg current date by default in the input "type=text" of year,month,day)in phpplease tell me .RegardsSubha
  11. Hi...Below the code<?phpinclude "pass.php";session_start();$user = isset($_POST['user']) ? $_POST['user'] : $_SESSION['user'];$pass = isset($_POST['pass']) ? md5($_POST['pass']) : $_SESSION['pass'];mysql_query("insert into login('', '$user', '$pass')");$link = mysql_connect($hostname, $username, $password);if($link){$db = mysql_select_db("time", $link);}$sql = "select * from login where username = '$user' and password = password('$pass')";$result2 = mysql_query($sql);if(!isset($pass) || !isset($user)){if($result2){?><form method=POST action=""><div align=center >Enter login details</div><br><table align = center><tr><td>Username</td><td><input type=text name=user value=""><tr><td>Password</td><td><input type=password name=pass value=""><tr><td><input type=submit value="Submit"></td></tr></table></form><?php}}else if($result2 != 'pass'){echo "<font>Authentication Failed</font>";}?>issue for this code for password is correct or incorrect, the result will be occured Authentication failed..What is the issue for this code?pls help..regardssubha
  12. Hi...Below the code<?phpinclude "pass.php";session_start();$user = isset($_POST['user']) ? $_POST['user'] : $_SESSION['user'];$pass = isset($_POST['pass']) ? md5($_POST['pass']) : $_SESSION['pass'];mysql_query("insert into login('', '$user', '$pass')");$link = mysql_connect($hostname, $username, $password);if($link){ $db = mysql_select_db("time", $link);}$sql = "select * from login where username = '$user' and password = password('$pass')";$result2 = mysql_query($sql);if(!isset($pass) || !isset($user)){ if($result2) {?> <form method=POST action=""> <div align=center >Enter login details</div><br> <table align = center> <tr><td>Username</td><td><input type=text name=user value=""> <tr><td>Password</td><td><input type=password name=pass value=""> <tr><td><input type=submit value="Submit"></td></tr> </table> </form><?php }}else if($result2 != 'pass'){ echo "<font>Authentication Failed</font>";}?>issue for this code for password is correct or incorrect, the result will be occured Authentication failed..What is the issue for this code?pls help..regardssubha
  13. subha rr

    Php And Mysql Issue

    Hi....Below the code for userlogin page<?phpinclude "pass.php";session_start();$user = isset($_POST['user']) ? $_POST['user'] : $_SESSION['user'];$pass = isset($_POST['pass']) ? $_POST['pass'] : $_SESSION['pass'];mysql_query("insert into login('', '$user', '$pass')");$link = mysql_connect($hostname, $username, $password);if($link){ $db = mysql_select_db("time", $link);}if(!isset($pass)){?> <form method=POST action=""> <div align=center >Enter login details</div><br> <table align = center> <tr><td>Username</td><td><input type=text name=user value=""> <tr><td>Password</td><td><input type=password name=pass value=""> <tr><td><input type=submit value="Submit"></td></tr> </table> </form><?php}$user = $_SESSION['user'];$pass = $_SESSION['pass'];$sql = "select * from login where username = '$user' and password = password('$pass')";$result2 = mysql_query($sql);include "pass.php";if($result2 == $pass){ if(isset($pass)) echo "<font>Authentication Failed</font>";}?>Error will occured.Password is wrong, cannot display authentication failed.. if not check the passwordwhat is the issue for this code...pls correct code for this pageRegardssubha
  14. subha rr

    Php And Mysql

    Hi...below the php code for user login details<?phpinclude "pass.php";session_start();$user = isset($_POST['user']) ? $_POST['user'] : $_SESSION['user'];$pass = isset($_POST['pass']) ? $_POST['pass'] : $_SESSION['pass'];mysql_query("insert into login('', '$user', '$pass')");$a = mysql_connect("localhost", "time", "");if($a){ $db = mysql_select_db("time", $a);}if(!isset($pass)){?> <form method=POST action=""> <div align=center >Enter login details</div><br> <table align = center> <tr><td>Username</td><td><input type=text name=user value=""> <tr><td>Password</td><td><input type=password name=pass value=""> <tr><td><input type=submit value="Submit"></td></tr> </table> </form><?php}$user = $_SESSION['user'];$pass = $_SESSION['pass'];$sql = "select * from login where username = '$user' and password = password('$pass')";$result2 = mysql_query($sql);if(mysql_num_rows($result2)){ echo "Authentication Failed";}?>Error will be occuredWarning: mysql_connect(): Can't connect to MySQL server on 'localhost' (10061) in d:\time schedule\admin\myauth.php on line 8Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in d:\time schedule\admin\myauth.php on line 33what is the issue for that?Pls give a correct php code......Regardssubha
  15. subha rr

    polymorphism

    Hi............How inheritance works with polymorphism?regardsSubha
×
×
  • Create New...