Web Design Forum  
 
Go Back   Web Design Forum > Web Software > Programming

Reply
 
LinkBack Thread Tools Display Modes
Old 05-10-2009, 02:07 AM   #1
New Member
 
Join Date: May 2009
Posts: 1
Default Using php, how would I edit the contents of a section of an html page permanently?

so basically i have a text box and command button on my web page, I want to make it so that when i click the command button, it makes the contents of a <div> (which is located on a separate page) equal to the contents of the text box (and vice versa so when the text box loads its equal to the contents of the div). How would I do that? Im designing a website for a historical district that needs to be able to update their meeting minutes and their schedule and such onto the web at an instant.

thanks!
gosox345 is offline   Reply With Quote


Old 05-10-2009, 11:52 AM   #2
New Member
 
Join Date: Apr 2009
Location: Romania
Posts: 18
Default

You got to use a database for that. You store the content of the textbox in a field in the database and than you query the database and display the content of that field in your <div>.
It's basic.
__________________
Code Generators
bozy12v is offline   Reply With Quote
Old 05-10-2009, 12:44 PM   #3
Gold Member
 
conor's Avatar
 
Join Date: Oct 2008
Location: Ireland
Posts: 349
Default

If you are not familiar with any programing languages I recommend that you make use of one of the many open source Content Management Systems out there. They will handle most of the work for you!
__________________
Conor
conor is offline   Reply With Quote
Old 05-12-2009, 09:35 AM   #4
New Member
 
Join Date: May 2009
Location: Netherlands
Posts: 15
Default

Take a look at TinyMCE if you want to build something on your own! Great start for an custom build CMS.
__________________
dutchWebdesign | www.HKWebDesign.nl
~New design, site under development.
hkwebdesign.nl is offline   Reply With Quote
Reply

Tags
php

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:51 AM.


Camera Forum - Computer Forum - Web Design Forum

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
Content Relevant URLs by vBSEO 3.6.0 ©2011, Crawlability, Inc.