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

I want to have a box that when I enter text will post it to a spot on another one of my pages.

How would I do this?

2006-12-26 17:34:37 · 4 answers · asked by Christian_Dude 2 in Computers & Internet Programming & Design

Whatever I can do... I just need an easy way to post event updates without re-saving my page.

I can use PHP, that's what my website is in.

2006-12-26 17:41:13 · update #1

4 answers

if you wanna just update events, try google calendar which you can embed in your page and it will update each time you place a new event in your calendar

2006-12-26 18:45:49 · answer #1 · answered by mrblackpcs 2 · 0 0

HTML is not script, so it can't actually "do" anything. It can only describe how things look on a page.

You need a server-side language like PHP or ASP, ColdFusion, Perl, etc. that will accept an HTML form submission and process it, store the text in a database or something, and then when subsequent users request the page, it will insert the text from the database on the fly.

Edit:

Thanks for the clarification. You need to create a private page that has an HTML form in it with the fields you need (like Title and Body or whatever you want to post). Then you need to write some PHP code that will accept that form whenever you click "submit". My recommendation is to use a MySQL database, have a table with the following columns: UpdateID, Title, Body, DateTimePosted. When you submit to the PHP script, it will insert the title and body you entered into the database, as well as the current DateTime.

Then on your page where you want to display this, you need to have some PHP in the page that will request the most recent n updates (however many you want to show) sorted by DateTimePosted, and write them out to the page. I think how to do this is beyond the scope of this answer space, basically the answer is you need to go get a book on PHP. Here is one I recommend, that specifically starts from the beginning and teaches how to accomplish what you are describing with MySQL and PHP:

http://www.amazon.com/PHP-Bible-2nd-Tim-Converse/dp/0764549553/sr=8-2/qid=1167202043/ref=pd_bbs_sr_2/104-6117150-7818300?ie=UTF8&s=books

2006-12-27 01:38:06 · answer #2 · answered by Rex M 6 · 0 0

If these pages are in separate frames in the same browser window it can be done via javascript... but if its on separate browser windows its not possible. Post it again with exactly what you need.

2006-12-27 01:39:12 · answer #3 · answered by Ronney 5 · 0 0

You need PHP, JSP or ASp for this type of task.

2006-12-27 07:53:09 · answer #4 · answered by TechQuickFixer 1 · 0 0

fedest.com, questions and answers