dont recieve values in $_POST variables
Posted: Mon May 31, 2010 5:27 am
i dont recieve values in $_POST variables in all browsers except IE, it works in in IE well.
<form name="form_editoffs" method="post" action="editoffs.php" onsubmit="return validation();">
<input type="text" name="txt_date" id="txt_date" size="20" value="<?php echo $row['offs_date'];?>" readonly="readonly" />
<input type="text" name="txt_desc" id="txt_desc" size="75" value="<?php echo $row['offs_desc'];?>" />
<input type="submit" value="Update" name="btn_submit" />
</form>
<?php
if(isset($_POST['btn_submit']))
{
$offsh = null;
$offsd = null;
if(empty($_POST['txt_date']) || empty($_POST['txt_desc']))
{
echo $_POST['txt_date'];
echo $_POST['txt_desc'];
//echo "<font face='calibri' size=2>Please enter date or event/description</font>";
}
else
{
$offsh = $_POST['txt_date'];
$offsd = $_POST['txt_desc'];
}
$offsh = addslashes($offsh);
$offsd = addslashes($offsd);
}
?>
<form name="form_editoffs" method="post" action="editoffs.php" onsubmit="return validation();">
<input type="text" name="txt_date" id="txt_date" size="20" value="<?php echo $row['offs_date'];?>" readonly="readonly" />
<input type="text" name="txt_desc" id="txt_desc" size="75" value="<?php echo $row['offs_desc'];?>" />
<input type="submit" value="Update" name="btn_submit" />
</form>
<?php
if(isset($_POST['btn_submit']))
{
$offsh = null;
$offsd = null;
if(empty($_POST['txt_date']) || empty($_POST['txt_desc']))
{
echo $_POST['txt_date'];
echo $_POST['txt_desc'];
//echo "<font face='calibri' size=2>Please enter date or event/description</font>";
}
else
{
$offsh = $_POST['txt_date'];
$offsd = $_POST['txt_desc'];
}
$offsh = addslashes($offsh);
$offsd = addslashes($offsd);
}
?>