View Single Post
Old 03-19-2005, 10:21 AM   #3 (permalink)
JimAdkins
Registered User
 
Join Date: Mar 2005
Posts: 8
JimAdkins is on a distinguished road
Cool. Thanx for the quick reply and the welcome. I have not changed the auth.php file. The only difference that I have made is on the include statements I have removed th inc/ directory, so all of my files are in the same dir. As for some code, lemme post the basic index.php page. All it is is a bunch of forms that submit to other php pages with the get type. This way the $_GET info can be passed to the other pages. I have tried adding a <a href link to the page that goes to another <a href link, and the session seems to be ok. I'm wondering if the form might not be posting correctly.

PHP Code:
<?php

// connect to database
include("connect.php");

// include auth and nav
include("auth.php");

echo 
"

<html>
<head>
<title>Input</title>
</head>
<body>
<center>
<font face=Arial size=5>
<b>Attendance</b><br><br>
<form action='attendance.php' type='get'><font face=Arial size=2>
Select Month:&nbsp&nbsp


<select name='month'>
<option value=''>Month...</option>
<option value='January'>January</option>
<option value='February'>February</option>
<option value='March'>March</option>
<option value='April'>April</option>
<option value='May'>May</option>
<option value='June'>June</option>
<option value='July'>July</option>
<option value='August'>August</option>
<option value='September'>September</option>
<option value='October'>October</option>
<option value='November'>November</option>
<option value='December'>December</option>
</select><br><br>
<input type=submit value=Submit></font>
</form>
<hr />
<b>Reports</b><br><br>
    <form action='report.php' target=_blank type=get>
    <font face=Arial size=2>
    Generate Report for the Month of:&nbsp&nbsp
    <select name='month'>
    <option value=''>Month...</option>
    <option value='January'>January</option>
    <option value='February'>February</option>
    <option value='March'>March</option>
    <option value='April'>April</option>
    <option value='May'>May</option>
    <option value='June'>June</option>
    <option value='July'>July</option>
    <option value='August'>August</option>
    <option value='September'>September</option>
    <option value='October'>October</option>
    <option value='November'>November</option>
    <option value='December'>December</option>
    </select><br><br>
    <input type=hidden name='act' value='reportgo'>
    <input type=submit value='Submit'></font>
    </form>
    <hr />

</body>
</html>
"
;
?>
Thanx again for the help. Really appreciated.
JimAdkins is offline   Reply With Quote