English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Basically on the webpage, there will be a free text field at the top of the page with a submit button, so when you write something in this field and hit submit, it updates a table or something below it with what was written in the free text field.

Thanks

2007-06-06 21:44:12 · 3 answers · asked by Anonymous in Computers & Internet Software

Thats great thanks, but just to extend on that, it only puts in one field of text, how do you get it so everytime you click update, it doesnt overwrite the previous entry but makes an entry on the line below??

2007-06-06 23:48:43 · update #1

3 answers

hard to do... you need a dedicated server to save the contents to and continually update the contents and synchronizes...

u need a database, PHP, MySql or something like that to save the data and reload it every time u reload the page.

2007-06-06 21:48:09 · answer #1 · answered by Matthew B 2 · 0 0

Try this code:
----------



Untitled Document















This text will be updated




--------------

I hope it is what u want, no dedicated servers :) just simple javascript.

Good luck

Updated:

I saw your previous question about this problem. I see that you need much more robust solution for this, It is not very hard to write javascript to do that, but the problem with javascripts is that each time you visit your page you'll have to input all the data again, it is not being saved anywhere serverside. To do that you will have to post data to server, use scripts (PHP, JSP, ASP or other) serverside store data propely and generate html's dynamicly, so you do not loose all the changes you've made. This is not very hard to do, write me at ???@???.??? (i've removed that for security reasons :) ) with what u have to do, and if i have a lot of spare time and nothing to do I might just write the script for you, just do not promise anything. By the way your server must support PHP, find out which version it supports, also is there MySQL database support available, if yes which version.

By the way if you are developing pages you will have to learn some programming it's not much what u can do with plain HTML and frontpage.

Good luck once again

Updated again:

I see you have an updated javascript, thanks to Daniel. I'm not much of an expert in javascript so he saved me a lot of time figuring out how to do that, thanks.

P.S. I'm not much an expert in web developing too :) just do some programming for my own needs from time to time.

2007-06-06 23:26:48 · answer #2 · answered by Ugnius_S 3 · 0 0

I've tweaked the above code to do what you say in your edit:




Untitled Document















This table will be updated



2007-06-07 00:56:09 · answer #3 · answered by Daniel R 6 · 0 0

fedest.com, questions and answers