Server side coding,ASP,ActiveVFP,CSP,Server-Side ANSI C, ColdFusion, CGI, Erlang with Linux, Yaws, Mnesia, Erlang, Grails (framework) Java, Perl, PHP, Python, e.g. Django (web framework), Real Studio Web Edition, Ruby, e.g. Ruby on Rails, Smalltalk e.g. Seaside, AIDA/Web, SSJS Server-Side JavaScript, e.g. Aptana Jaxer, Mozilla Rhino, WebDNA,Websphere ,.NET and .NET MVC Frameworks.
Monday, April 29, 2013
How to check if login credentials are null or not register in php
Add those lines before html tag. if login credentials are null or not register it will redirect the page in index page. In this case credential is username.
<?php
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
session_start();
if(!$_session=$myusername){
header("location:index.php");
}
?>
Labels:
php
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment