Hi,
I have a form on a PHP page that will display data from a mysql database when I have the action on the form set to Get but not when sent to Post.
This is on a Win2k server loader with IIS5.
PHP 5.0.4
Running the same code on a test Win2003 server with IIS6 and PHP 5.0.3 works without a problem.
Guess which server I have to use as my web server for Production?
Any Suggestions?
Sincerely,
Michael
I have a form on a PHP page that will display data from a mysql database when I have the action on the form set to Get but not when sent to Post.
This is on a Win2k server loader with IIS5.
PHP 5.0.4
Running the same code on a test Win2003 server with IIS6 and PHP 5.0.3 works without a problem.
Guess which server I have to use as my web server for Production?
Code:
//Paginator
if(!isset($_GET['page'])){
$page = 1;
} else {
$page = $_GET['page'];
}
//echo 'Page Count: '.$_GET['page'];
// Define the number of results per page
$max_results = 10;
// Figure out the limit for the query based
// on the current page number.
// Figure out the limit for the query based
// on the current page number.
$from = (($page * $max_results) - $max_results);
?>
<link href="../css/nh.css" rel="stylesheet" type="text/css">
<?php
if (!isset($_POST['submit']) && (!isset($_GET['page']))) {
?>
<p> </p>
<form action="PropSearch.php" method="post">
<table>
<tr><td><font color="#FF0000">*</font> Last Name or Company: </td><td><input name="ln" size="30" type="text">
Exact<input name="lnExact" type="checkbox"></td></tr>
<tr><td>First Name: </td><td><input name="fn" type="text"></td></tr>
<tr><td><!-- <font color="#FF0000">**</font> -->City: </td><td><input name="city" type="text"></td></tr>
<tr><td><!-- <font color="#FF0000">**</font> -->Company Holding Property: </td><td><input name="holder" type="text">
</td></tr>
</table>
<input type="submit" name="submit" value="Search">
<p><font color="#FF0000">*</font> Required Field</p>
<!-- <p><font color="#FF0000">**</font> Not Implemented Yet</p>
--> </form>
<?php for($i = 1; $i <= 7; $i++){
echo '<p> </p>';
}
?>
<?php
} //if (!isset($_POST['submit'])) {
else { //if (!isset($_POST['submit'])) {
if (!isset($_GET['page'])) {
$_SESSION['ln'] = $_POST['ln'];
$_SESSION['fn'] = $_POST['fn'];
$_SESSION['city'] = $_POST['city'];
$_SESSION['refExact'] = $_POST['refExact'];
$_SESSION['lnExact'] = $_POST['lnExact'];
}
$IncludeMe = 'db.php';
include($IncludeMe);
?>
Any Suggestions?
Sincerely,
Michael