Question : ASP - Form submit show data in bottom part of page

I have a simple search tool that pulls data from an Access DB - I need to perty it up a bit after some usability input: Currently, I use a form for each of the 4 different search options, those pages pass the end user search parameters to the Access DB and a new page shows the results.

Now, I need the upper part of the page with a form that has 5 rows and on each row is a  radio button selection with a descriptive term and on the 5th row a search button.

The 4 search options are as follows::

keywords (with a text box) so, radio button +text box
subject - radio button +drop down menu selection
owner - radio button +drop down menu selection
Show all - just a radio button
search button

When the radio button is selected and any other text or menu selection the search results need to show up on the same page (guessing a refresh to pass the data to Access DB) in the bottom part

How can I do this?

Thanks

Answer : ASP - Form submit show data in bottom part of page

As on_prakash_p says.  You make the form action to call the same page you are on

<form id="form1" name="form1" method="post" action="samepage.asp" >

Then you need to check when the page reloads if it has called itself from a form.  In this case if we pressed a button on the form called BTN_Submit the request form will NOT be blank so we just check

If Trim(Request.Form("BTN_Submit")) <> "" Then    

Now this is where you can then loop through the recordset and and output the data  
Random Solutions  
 
programming4us programming4us