Hi,
I have some simple forms on a site I am developing that are having problems when used under SSL. You fill out the form, hit submit, and the form does not POST correctly. The page just reloads and the form is entirely empty. It doesn't happen every time, but it seems like the more information you enter into the form, the more likely it is to fail.
I haven't been able to duplicate the problem in non-SSL situations.
The site uses sessions also. The user must be logged in to fill out the forms.
Here's an example:
<?php
include("includes/master.inc.php");
check_session();
// Post values
$rfq_nbr = $_POST['rfq_nbr'];
$change_rfq = $_POST['change_rfq'];
$release_date = $_POST['release_date'];
$release_date_year = $_POST['release_date_year'];
$release_date_month = $_POST['release_date_month'];
$release_date_day = $_POST['release_date_day'];
$release_date_hour = $_POST['release_date_hour'];
$due_datetime = $_POST['due_datetime'];
$buyer_cd = $_POST['buyer_cd'];
$buyer_comments = anti_slash($_POST['buyer_comments']);
$del_point = anti_slash($_POST['del_point']);
$dest_name = anti_slash($_POST['dest_name']);
$dest_addr = anti_slash($_POST['dest_addr']);
$dest_city = anti_slash($_POST['dest_city']);
$dest_st = anti_slash($_POST['dest_st']);
$dest_zip = $_POST['dest_zip'];
$note_1 = $_POST['note_1'];
$note_2 = $_POST['note_2'];
$note_3 = $_POST['note_3'];
$note_4 = $_POST['note_4'];
$note_5 = $_POST['note_5'];
$county_brand = anti_slash($_POST['county_brand']);
$additional_instructions = anti_slash($_POST['additional_instructions']);
$change_rfq = $_POST['change_rfq'];
$due_datetime_year = $_POST['due_datetime_year'];
$due_datetime_month = $_POST['due_datetime_month'];
$due_datetime_day = $_POST['due_datetime_day'];
$due_datetime_hour = $_POST['due_datetime_hour'];
// The form has been filled out and submitted at least once
// Collect all post variables
if ($_POST['useraction'] == "submitted") {
// Error checking
include("/d1/wb/secure/buynet/buyer/templates/enter_rfq_error_checking.tmpl.php");
}
// If release date isn't created yet, create it
// This should only accessed once, and only if a new RFQ is being created
if(empty($_POST['release_date']) && !isset($release_date)) {
// Mysql will create correct format, don't need: $release_date = date("Y-m-d H:i:s");
$release_date = date("YmdHis");
$release_date_year = date("Y");
$release_date_month = date("m");
$release_date_day = date("d");
$release_date_hour = date("H");
}
// Show html page below, whether visiting this page for the first time or not
?>
<html>
<head>
<title>BUYNET: Enter RFQ Header</title>
<link rel="stylesheet" href="css/buynet_buyer.css" type="text/css">
</head>
<body bgcolor="#FFFFFF" topmargin="20" leftmargin="20" marginheight="0" marginwidth="0">
<a href="index.php">Buyer Home</a>
<br><br>
<?php
include("templates/enter_rfq.tmpl.php");
?>
</body>
</html>