Hi This is my first post.<br><br>I have script like:<br><br>index.html<br>{<br> if ($_GET[id]=="LOGIN") include("login.php");<br> if ($_GET[id]=="HOME") include("home.php");<br>}<br><br>home.php<br>{<br> echo"HOME";<br>}<br><br>login.php<br>{<br><br> if (isset($_POST[sbmt_login])) <br> {<br> // logged ok now display HOME !!!!!!!!!!!<br><br> header("lacation:index.html?id=HOME");<br> exit;<br> }<br><br> <form action="index.html?id=LOGIN"><br> .....<br> ..... <br> <input type"submit" name"sbmt_login" ...><br> </form><br><br>}<br><br>After click login botton HOME string is displayed.<br>This work on my local Apahe instalation, but when move to x10hosting deos not.<br><br>I search solution all day and can't find.<br>Please help.<br>
---------- Post added at 01:14 AM ---------- Previous post was at 12:59 AM ----------
Hi This is my first post.
I have script like:
index.html
{
if ($_GET[id]=="LOGIN") include("login.php");
if ($_GET[id]=="HOME") include("home.php");
}
home.php
{
echo"HOME";
}
login.php
{
if (isset($_POST[sbmt_login]))
{
// logged ok now display HOME !!!!!!!!!!!
header("lacation:index.html?id=HOME");
exit;
}
<form action="index.html?id=LOGIN" ... >
.....
.....
<input type"submit" name"sbmt_login" ... >
</from>
}
After click login botton HOME string is displayed.
This work on my local Apahe instalation, but when move to x10hosting deos not.
I search solution all day and can't find
Please help.
---------- Post added at 01:29 AM ---------- Previous post was at 01:14 AM ----------
... and in index.html i have:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<meta name="Description" content="......." />
<meta name="Keywords" content="......" />
<title> TITLE </title>
<script language="JavaScript" src="scripts/somescript.js" type="text/javascript"></script>
<script src="scripts/ajax.js" type="text/javascript"></script>
</head>
<body>
---------- Post added at 01:14 AM ---------- Previous post was at 12:59 AM ----------
Hi This is my first post.
I have script like:
index.html
{
if ($_GET[id]=="LOGIN") include("login.php");
if ($_GET[id]=="HOME") include("home.php");
}
home.php
{
echo"HOME";
}
login.php
{
if (isset($_POST[sbmt_login]))
{
// logged ok now display HOME !!!!!!!!!!!
header("lacation:index.html?id=HOME");
exit;
}
<form action="index.html?id=LOGIN" ... >
.....
.....
<input type"submit" name"sbmt_login" ... >
</from>
}
After click login botton HOME string is displayed.
This work on my local Apahe instalation, but when move to x10hosting deos not.
I search solution all day and can't find
Please help.
---------- Post added at 01:29 AM ---------- Previous post was at 01:14 AM ----------
... and in index.html i have:
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-2" />
<meta name="Description" content="......." />
<meta name="Keywords" content="......" />
<title> TITLE </title>
<script language="JavaScript" src="scripts/somescript.js" type="text/javascript"></script>
<script src="scripts/ajax.js" type="text/javascript"></script>
</head>
<body>