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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

from to submit to itself (?)

Status
Not open for further replies.

Fstop

Programmer
Jan 17, 2001
4
US
Is there a way to have a form update itself?
Such as this:
I have two tables (left and right)
Left displays nothing on initial load, RIGHT displays the results of a query and has a SUBMIT button.( this works fine) NOW, if I have a "calculate" button on the RIGHT table that after they edit the RIGHT table, reloads the page and fills in the LEFT table values AND the right Values too.and then the "submit" button takes them on their merry way .
OR for sake of ease Maybee I should just duplicate the page with out the query and have it reload itself with the same as above? any help would be sweet!
 
Are you asking is there a way to not have to reload the page to get the data from the right table to the left table? If so, you can use Javascript to copy the form variables.

If not, were you looking for a way that the visitor wouldn't have to click the submit button again after the page loads with the left table filled out?

GJ
 
sort of --
I want to combine the form and action pages togeather.
when a "Calculate Butoon" is clicked it reloads the page with the correct Data,
I think I have figured that the Query is what is not letting me do this.
SO what I will try is to duplicate the page only WITHOUT THE QUERY, and i think that will work.
its like this:
1 query
2 forms on one page
FORM 1 reloads the page
FORM 2 goes to the ACTION page
JS may do it , but I have done this without the QUERY before.
Make sense?
 
I'm still a little confused. Perhaps it would help to understand your actual application a little better. This is what it sounds like to me at this point. When the page first loads, data from a table is loaded into a form on the right containing a number of text entry fields (one for each field in the db). The user can edit the data in each of the text entry fields. When they are finished, they click the submit button and it reloads the page. This time, the modified data shows up on the right in text edit fields again but also shows up on the left in a non-editable table (display only). The visitor then clicks another button which goes to a page which processes this modified data.

Is this correct?

GJ
 
As far as the self posting aspect is concerned:

Have you a condition wrapping the whole thing to check for the existance of form.submit?

Then the action page of the form calling itself, ie.
<form action=&quot;#cgi.script_name#?#cgi.script.query_string#&quot;



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top