form input value to a result.php
<p>i created a buy.html:</p>

<pre><code>&lt;form action="result.php" method="post"&gt;
&lt;input type="radio" Name="ptype" /&gt;aaa&lt;br/&gt;
&lt;input type="radio" Name="ptype" /&gt;bbb&lt;br/&gt;
&lt;input type="submite" value="Submit" /&gt;
</code></pre>

<p>then i created a result.php</p>

<pre><code>&lt;?php
...
...
$sql="SELECT address, ptype, price FROM property WHERE ????"
?&gt;
</code></pre>

<p>"aaa" and "bbb" are the radio buttons value which are a type of "ptype" in property table</p>

<p>so if i select "aaa", i want to do a query for rows with "aaa" in ptype. how can i do that?</p>
