Hi KL...
I'm not exactly sure of what you are tring to do --- but --- I can assure you that php is excellent with forms. This is one of the many features that makes php distinct from other scriping languages.
I'm assuming that you are calling the form to itself and, based on what is in the form fields, and running a query to the database. If there are records in the DB, then display, else, let the user know that there is no match.... I would do something like this...
<form action="<?$PHP_SELF?>" mehtod="post">
//form fields here
<input type="submit" name="submit" value="submit">
</form>
Now, when the user clicks on submit, and the page calls itself....
<?
if(isset($submit)){
//query the database
if(mysql_num_rows==0){
//no records
blnNoRecords=true
}else{
//loop through the recordsets
}
Now, on the page where the display will be..
if(!blnNoRecords){
//there are records to be displayed.. show to the user
}else{
echo"Sorry .. no match";
}
I hope this helps. I'm sure that there are syntax errors etc. I whipped this out pretty quick...
?>