473,385 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

How to make my web page editable..

Hello,

I have developed one web site, In that i want to add a tool for viewers to edit the current page.

For example in wikipedia there having one tool for edit This page(sand box), here is the Link for that edit page.

http://en.wikipedia.org/w/index.php?...ge&action=edit

help me to slove this.
Sep 17 '08 #1
6 2776
Atli
5,058 Expert 4TB
Hi.

How is the data on that page stored?

If it's a simple HTML page, you could just fetch the content of that page using a function like file_get_contents, display it in a <textarea> and the save it again when the user submits it.
Sep 17 '08 #2
Hi.

How is the data on that page stored?

If it's a simple HTML page, you could just fetch the content of that page using a function like file_get_contents, display it in a <textarea> and the save it again when the user submits it.
HI

Thank's for your kind reply.

But i dont want to put the file content.My query is , for ex: There is one line of mathematics equations and in that forum if any body want to add a line about that equation i should let them add.
Sep 17 '08 #3
Markus
6,050 Expert 4TB
HI

Thank's for your kind reply.

But i dont want to put the file content.My query is , for ex: There is one line of mathematics equations and in that forum if any body want to add a line about that equation i should let them add.
Is your webpage content coming from a Database?
Sep 17 '08 #4
Atli
5,058 Expert 4TB
So you want people to be able to add text into a static HTML file?
Something like a comment system you might find on a blog.

The simplest way would probably be to have a HTML file that contains a placeholder of sorts, where you want new lines to be added.
Then you could load the entire file into your PHP code and replace that placeholder with the new line, adding a new placeholder after that line, and finally overriding the old HTML file with the new one.

That wouldn't be hard to implement, and would just require basic knowledge of PHP.
Look into the file_get_contents, str_replace and file_put_contents functions if you want to try it out.

That is, obviously, not the best way to do this, but is is the simplest.
Other, more refined methods, would involve some sort of a database, and a PHP code that would assemble the page on each request (or possibly create a cached file... but that's a while another issue).
Sep 17 '08 #5
Is your webpage content coming from a Database?
yes it's content coming from Database...
Sep 20 '08 #6
So you want people to be able to add text into a static HTML file?
Something like a comment system you might find on a blog.

The simplest way would probably be to have a HTML file that contains a placeholder of sorts, where you want new lines to be added.
Then you could load the entire file into your PHP code and replace that placeholder with the new line, adding a new placeholder after that line, and finally overriding the old HTML file with the new one.

That wouldn't be hard to implement, and would just require basic knowledge of PHP.
Look into the file_get_contents, str_replace and file_put_contents functions if you want to try it out.

That is, obviously, not the best way to do this, but is is the simplest.
Other, more refined methods, would involve some sort of a database, and a PHP code that would assemble the page on each request (or possibly create a cached file... but that's a while another issue).
Thank u so much........
Ill try this out. If i got any doubt help me like this only...
Sep 20 '08 #7

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: sebastien roupin | last post by:
Dear all, i'm newbies to .net (VB) development and i've got a little question.(i use microsoft visual studio to develop but i can code also) i created a form with a comboxbox. When i launch it, the...
3
by: Angela Chen | last post by:
Hi, I have a readOnly textbox. I want to be able to double click it to make it editable? How to implement it?\ Thanks a lot
0
by: Luis Esteban Valencia | last post by:
I have a datagrid with no editable fields except checkboxes at the beginning of each row. Is it possible to make certain columns in a row editable if a user selects the checkbox of that row? I...
1
by: Gunjan Garg | last post by:
Hello All, I am working to create a generic datagrid which accepts a datasource(ListData - This is our own datatype) and depending on the calling program customizes itself for sorting,...
7
by: Diane | last post by:
Hi- I've been struggling with this problem and none of the fixes posted seem to help out at all. Yet, it seems like such a simple problem... I have a DataGrid, and load it up with data on...
1
by: Samuel Shulman | last post by:
Any method to make a cell editable programmatically The problem is that if the user entered a value which is not valid then instead of ignoring the value and explaining the user what was wrong ...
2
by: justplain.kzn | last post by:
Hi, I have a table with dynamic html that contains drop down select lists and readonly text boxes. Dynamic calculations are done on change of a value in one of the drop down select lists. ...
4
by: Steve Kershaw | last post by:
Hi, I have a gridview with an UpdateQuery() that's fired when the user edits/updates a row. The problem lies in the fact that every cell in the edited row shows up as editable even though one...
1
by: sanika1507 | last post by:
If i have a webpage and i have filled the fields ,if all the fields r correctly filled the page is approved and the fields become read only(u cannot edit them )..but I want to revise the page and...
3
by: AshishMishra16 | last post by:
Hi Friends, What is the way to iterate the Table and Make all the input types editable on the click of a checkbox. Here is what My Requirement is : <table id="adSearchTable"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.