post problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
shiranwas
Forum Commoner
Posts: 53
Joined: Fri Jul 07, 2006 10:41 pm
Location: Colombo

post problem

Post by shiranwas »

hi,

can anyone help me on this prob,

when i post the value of the gender option it won't come properly.
what is the problem.


Code: Select all

<body>
<?php

if ($_POST['summary']=='Summary'){
	
	
		include('Conn.php');	
		$sql="select * from call_details";
		$result=mysql_query($sql);		
		if (!$result){
			echo "No records available";
		}else{	
			echo "<div id='Layer1' style='position:absolute; left:190px; top:120px; width:447px; height:142px; z-index:1; '> ";
			echo "<table border=1 bordercolor='#000000' cellpadding=5>";
			//echo "<fieldset>";
				echo "<tr  bgcolor='#999999'>";
					echo "<td ><font size=4>Refno</font></td>";
					echo "<td><font size=4>Name</font></td>";
					echo "<td><font size=4>Company</font></td>";
					echo "<td><font size=4>Telephone</font></td>";
					echo "<td><font size=4>Email</font></td>";
				echo "</tr>";
				while($rows=mysql_fetch_row($result)){
				
					echo "<tr >";						
						//echo "<td height='5'><input type="submit" name="Submit" value='".$rows[0]."'></td>";
						
						echo "<td height='5'><input name='was' type='radio' value='".$rows[0]."'></td>";
						 

						echo "<td height='5'>".$rows[1]."</td>";
						echo "<td height='5'>".$rows[2]."</td>";
						echo "<td height='5'>".$rows[3]."</td>";
						//echo "<td height='5'><input name=".$rows[3]." type='radio' value=".$rows[3]." ></td>";
						echo "<td height='5'><input name='was' type='radio' value='".$rows[0]."'></td>";
					echo "</tr>";
					
				}
			//echo "</fieldset>";
			echo '</table>';
			echo "</div>";
			
			
			echo "Male:<input type='radio' value='Male' name='gender'>:<br />";

			
			
			include('supervisor.htm');
		}
}elseif ($_POST['play']=='Play'){
//echo "donkey";
	$filename=$_POST["gender"];
	echo   $filename;
	echo "fine";
	
	//include ('supervisor.htm');
	
	//echo "<embed id='MediaPlayer' type='application/x-mplayer2' width=300 height=300  pluginspage='http://www.microsoft.com/Windows/MediaPlayer/' src='1.wmv' name='MediaPlayer' showstatusbar='0' EnableContextMenu='0' showcontrols='1' autosize='0'></embed> ";	
	
}


?>



<div id="Layer1" style="position:absolute; left:563px; top:378px; width:109px; height:29px; z-index:1">
  <form name="form1" method="post" action="">
    <input type="submit" name="OK" value="OK">
  </form>
</div>

 
			<!--Female:<input type="radio" value="Female" name="gender">:<br />-->
</body>
</html>
thanx
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

"Female" is in a comment
"Male" isn't in the form.
Post Reply