Humm no I tried removing it and no result :bemused:
Here is the complete code of my page. I think it's somewhere else that I might doing wrong. I have the same problem with checkboxes also. I want to be able to retrieve the Posted value but I have no clue how to do it.
<?php
session_start();
header("Cache-control: private");
$message = "";
$message2 = "";
$message3 = "";
$titleclass = "basictext";
$verification_title = 0;
$verification_topic = 0;
$verification_type = 0;
if ($_POST['process'] == 1)
{
if ( (isset($_POST['Title'])) && (!empty($_POST['Title'])) )
{
$verification_title = 1;
$message = "";
}
else
{
$message = "Please enter the TITLE of your presentation.";
$Title = $_POST['Title'];
$emailclass = "errortext";
}
if ( (isset($_POST['Topic'])) && (!empty($_POST['Topic'])) )
{
$verification_topic = 1;
$message2 = "";
}
else
{
$message2 = "Please enter the TOPIC of your presentation.";
$Topic = $_POST['Topic'];
$emailclass = "errortext";
}
if ( (isset($_POST['Presentation_Type'])) && (!empty($_POST['Presentation_Type'])) )
{
$verification_type = 1;
$message3 = "";
}
else
{
$message3 = "Please enter the TYPE of presentation.";
$Presentation_Type = $_POST['Presentation_Type'];
$emailclass = "errortext";
}
if (($verification_title == 1) && ($verification_topic == 1) )
{
$_SESSION['POST_VARS'] = base64_encode(serialize($_POST));
session_write_close();
header("location: abstract_page_2.php");
}
}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="content-type" content="text/html;charset=iso-8859-1">
<title></title>
<style>
.basictext {
font-family: Tahoma;
font-size: 12px; color:#431430;
}
body { color: #431430; font-size: 12px; font-family: Tahoma }
p { color: #431430; font-size: 12px; font-family: Tahoma }
td { color: #431430; font-size: 12px; font-family: Tahoma }
.errortext {
font-family: Tahoma;
font-size: 12px; color:#C00000; font-weight: bold;
}
</style>
</head>
<body bgcolor="#ffffff">
<form action="abstract_page_1v2.php" method="post" name="Abstract_Page_1">
<div align="center">
<table width="50%" border="0" cellspacing="1" cellpadding="0" bgcolor="#eb6093">
<tr>
<td>
<table width="60%" border="0" cellspacing="0" cellpadding="5" bgcolor="white">
<tr>
<td colspan="2"><br>
</td>
</tr>
<tr>
<td colspan="2"><img src="images/i_abstract_information.gif" alt="" height="30" width="700" border="0"></td>
</tr>
<tr>
<td width="25%"><br>
</td>
<td><?php if ($message != "") {print '<span class="errortext">'.$message."<span>\n";}?></td>
</tr>
<tr>
<td width="25%"><font color="red" face="Verdana">*</font><font face="Verdana"><b>Title:</b></font></td>
<td><input type="text" name="Title" value="<?print $Title; ?>" size="70" maxlength="300" tabindex="1" onchange="javascript:while(''+this.value.charAt(0)==' ')this.value=this.value.substring(1,this.value.length);"></td>
</tr>
<tr>
<td width="25%"></td>
<td><?php if ($message2 != "") {print '<span class="errortext">'.$message2."<span>\n";}?></td>
</tr>
<tr>
<td width="25%"><font color="red" face="Verdana">*</font><font face="Verdana"><b>Topic:</b></font></td>
<td><select id="AbstractTopicsID" name="Topic" tabindex="2" onchange="Enable_Other_Topic_Field(this);">
<option value="<? if ($_POST['Title'] == "Select A Topic") echo "selected"; ?>">Select A Topic</option>
<option value="Angiogenesis"<? if ($_POST['Title'] == "Angiogenesis") echo "selected"; ?>>Angiogenesis</option>
<option value="Clinical Therapeutics">Clinical Therapeutics<?php if ($Topic == "Clinical Therapeutics") echo " selected"; ?></option>
<option value="Genetics and Imaging">Genetics and Imaging</option>
<option value="Metastasis and Metastatic Disease">Metastasis and Metastatic Disease</option>
<option value="Pathology and Molecular Profiling">Pathology and Molecular Profiling</option>
<option value="Receptors and Hormones ">Receptors and Hormones</option>
<option value="Signal Transduction">Signal Transduction</option>
<option value="Tumor Microenvironment and Cancer Stem Cells ">Tumor Microenvironment and Cancer Stem Cells</option>
<option value="Other topic">Other topic</option>
</select></td>
</tr>
<tr>
<td colspan="2"></td>
</tr>
<tr>
<td width="25%"><font face="Verdana"><b>Other topic<br>
(please specify):</b></font></td>
<td><input type="text" name="Other_Topic" readonly size="50" maxlength="100" tabindex="3" onchange="javascript:while(''+this.value.charAt(0)==' ')this.value=this.value.substring(1,this.value.length);"></td>
</tr>
<tr>
<td width="25%"></td>
<td><?php if ($message3 != "") {print '<span class="errortext">'.$message3."<span>\n";}?></td>
</tr>
<tr>
<td width="25%"><font color="red" face="Verdana">*</font><font face="Verdana"><b>Type of presentation:</b></font></td>
<td>
<table width="30%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><input onclick="checkBoxValidate(0,1)" type="checkbox" name="Presentation_Type" value="Oral" tabindex="4" ><font face="Verdana">Oral</font></td>
<td><input onclick="checkBoxValidate(1,1)" type="checkbox" name="Presentation_Type" value="Poster" tabindex="5"><font face="Verdana">Poster</font></td>
</tr>
</table>
</td>
</tr>
<tr>
<td colspan="2" align="right"><input type="hidden" name="process" value="1">
<table border="0" cellspacing="0" cellpadding="25">
<tr>
<td><input type="image" name="Submit" src="images/continue.gif" alt="" tabindex="7"></td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</div>
</form>
<p></p>
<p></p>
</body>
</html>