Hello,
I have all my php documents in one folder to handle my form creating, and i have all my html
files in one directory as well. but in my php code i want when a user click on the hyperlink in php page it shoud yake the user to my index.html but the link is there not responingto click,could some one tell me the best way to redirect a user from php page to html page
<?php
/* Program: New_member.php
* Desc: Displays the new member welcome page. Greets
member by name and gives a choice to enter
* restricted section or go back to main page. */
session_start();
if (@$_SESSION['auth'] != "yes")
{
header("Location: login.php");
exit();
}
include("dogs.inc");
$cxn = mysqli_connect($host,$user,$passwd,$dbname)
or die ("Couldn't connect to server.");
$sql = "SELECT firstName,lastName FROM Member
WHERE loginName='{$_SESSION['logname']}'";
$result = mysqli_query($cxn,$sql)
or die("Couldn't execute query");
$row = mysqli_fetch_assoc($result);
extract($row);
echo "<html>
<head><title>New Member Welcome</title></head>
<body>
<h2 style='margin-top: .7in; text-align: center'>
Welcome $firstName $lastName</h2>\n";
?>
<p>Your new Member Accountcreated</p>
<form action="SecretPage.html" method="post">
<input type="submit"
value="Enter the Members Only Section">
</form>
<form action="file:///C|/Users/0382/xampp/htdocs/dia/index.html" method="post">
<input type="submit" value="Go to my home Page">
</form>
</div>
</body></html>
i have triedd it in two different ways but not working