Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Form in a page

Status
Not open for further replies.

Hondy

Technical User
Mar 3, 2003
864
GB
Hi

Whats the best way to create a form within a data page?

I'm trying to make a page where I can change the values on a form and the data changes but the form stays on the page.

So far I have created a "form.asp" include that is part of the main data page and the "action" is to post to the main page.

Is this the best way of doing it or is there another way? The easiest way is to have 2 pages one with a form and the other with the data but the users need the form to be on the same page. I suppose it is a bit like excel, you change a cell and update the page.

Any pointers?

Cheers

 
I'm not really sure that I understand your question.

Are you asking how to make the form post data or how to process that data and show it on a page?

You could just POST the form data to whatever page needed it and then access the POST array to get what was posted by the form.

You may get a better answer with a clearer question. And since this seems to be ASP related you should ask in the appropriate ASP forum.

You may also wish to use AJAX to prevent your entire page refreshing when the form is posted.

--
Tek-Tips Forums is Member Supported. Click Here to donate

<honk>*:O)</honk>

Tyres: Mine's a pint of the black stuff.
Mike: You can't drink a pint of Bovril.


 
Like Foamy, I'm having a hard time understanding what it is your are asking.

Having the form in the same page as your data is perfectly functional. It all comes down to the action you define for your form. if you point it to the same page where you display your data, that page would process the request. However how you process is down to your server side language .






----------------------------------
Ignorance is not necessarily Bliss, case in point:
Unknown has caused an Unknown Error on Unknown and must be shutdown to prevent damage to Unknown.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top