i created a buy.html:
<form action="result.php" method="post">
<input type="radio" Name="ptype" />aaa<br/>
<input type="radio" Name="ptype" />bbb<br/>
<input type="submite" value="Submit" />
then i created a result.php
<?php
...
...
$sql="SELECT address, ptype, price FROM property WHERE ????"
?>
“aaa” and “bbb” are the radio buttons value which are a type of “ptype” in property table
so if i select “aaa”, i want to do a query for rows with “aaa” in ptype. how can i do that?
You must set value of input element
THEN