i have a task i.e

<form action="" method="post">
Sort by: asc<input type="radio" name="result"value="asc" />
desc<input type="radio" name="result" value="desc" />
Enter String: <textarea cols="40" rows="5" name="myname"> </textarea>
<input type="submit" name="submit" value="submit" />

this is a form...

when i am enter some values like: apple, banana, cat,rat,mouse

the output will comes either ascending order nor descending order according to that radio button selections..

please help me..