If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

If it's on the same page you just have to get the data and change the value in the appropriate textfield. If you want it on another page, you'll have to pass the values as part of the URL and then use JS to get the variables from the URL and then change the appropriate textfields in the new form.

Rich

"An expert is a person who has made all the mistakes that can be made in a very narrow field."

sorry, i meant to say table instead of form. i want to have a table with 5 columns and want to be able to add new rows with data in them by submitting the data using buttons. (so i wont have to write out the tags everytime i want to add data to the table) thanks again

Or you wanting this is keep adding and saving the data? Cause if you are then it's not possible, as there's no way JS can store the data. The only thing it could do is during a session, display everything that is added, but as soon as the session is closed the data will be deleted.

I'd use the pass the values to the same page. Get JS to grab the values and add them to an array in the head section of the page. Then where you want the table, have an loop that writes out a new line for the entries of the array.

If this is what you want let me know and I'll put a script together for you. (or someone else may beat me to it )

Rich

"An expert is a person who has made all the mistakes that can be made in a very narrow field."

I believe that the following page works pretty well, but the only concern i have is with the length of the url. The more times the submit button is pressed the longer the url gets. See if it's any use to you