<?php
include"connect.php";
$un=$_POST['txtuname'];
$up=$_POST['txtpass'];
//echo "$un</br>$up</br>";
$res=pg_query($con,"select count(*) from Users where uname='$un' and upass='$up'");
$r=pg_fetch_array($res);
if($r[0]==1)
{
session_start();
$_SESSION['unm']=$un;
$_SESSION['ups']=$up;
echo "<script type='text/javascript'>";
echo "if(confirm('Login Successfully'))document.location='home.html';else document.location='home.html';";
echo "</script>";
}
else
{
echo "<script type='text/javascript'>";
echo "if(confirm('Username or password doesnot match'))document.location='home.html';else document.location='home.html';";
echo "</script>";
}
?>
I believe there are many more pleasurable opportunities ahead for individuals that looked at your site.php training in chennai
ReplyDeleteThank you Ramdas Biradar. This is worked well.
DeletePHP Training in Chennai | PHP Training institute in Chennai
Thanks for your code. I hope this code is helpful to create login validation.
DeleteSoftware Testing Training in Chennai
Software Testing Course in Chennai
thank u blogger
ReplyDeleteNeeded to compose you a very little word to thank you yet again regarding the nice suggestions you’ve contributed here. java training in chennai
ReplyDeletekeep posting more blogs, it really helps me in different ways.
ReplyDeleteSelenium Training in Chennai
software testing selenium training
ios developer course in chennai
French Classes in Chennai
Salesforce Admin Training in Chennai
Salesforce Administrator 201 Training in Chennai
Very wonderful article! I read your post regularly. It is very interesting and very helpful for improve myself. Please posting.....
ReplyDeletePHP Training Center in Bangalore
PHP Course in Bangalore
PHP Training in Nolambur
PHP Training in Vadapalani
PHP Training in Kandanchavadi
Php Scripting Language Examples
ReplyDeleteyour blog is good thanks
ReplyDeletesoftware testing training institute in chennai
Thanks for the informative article. This is one of the best resources I have found in quite some time. Nicely written and great info. I really cannot thank you enough for sharing.
ReplyDeleteSelenium online training
Selenium certification training
Selenium online course
Selenium training course
This is a nice article here with some useful tips for those who are not used-to comment that frequently. Thanks for this helpful information I agree with all points you have given to us. I will follow all of them. keep it up
ReplyDeleteAi & Artificial Intelligence Course in Chennai
PHP Training in Chennai
Ethical Hacking Course in Chennai Blue Prism Training in Chennai
UiPath Training in Chennai
Great Post, Thanks for sharing the great post.
ReplyDeletePHP Online Training
PHP Online Course
PHP Online Training in chennai