/    Sign up×
Community /Pin to ProfileBookmark

Allow a user to change one line of a webpage?

I would like to construct a login page that would let an authorized user change what is displayed on a webpage.

For example:

One line of HTML = <span>We’ll be at the park Friday night</span>

I would like to allow someone to login, see a form field, enter the new text to be displayed between <span> </span> , click enter, and have the webpage updated and saved to show the new text so visitors to the site will see the update.

Can I use PHP to do this? And would someone please explain to me how it is done or point me to another online resource?

Thanks a lot. This is a great fourm!

J

to post a comment
PHP

3 Comments(s)

Copy linkTweet thisAlerts:
@WebJoelApr 08.2008 — -Kind of like WikiPedia does, huh? Kewl! ?
Copy linkTweet thisAlerts:
@JasonDFRauthorApr 08.2008 — Yeah, but much more basic. Where should I look to learn how to do this?

Thanks.
Copy linkTweet thisAlerts:
@padreApr 08.2008 — if your not using a database, use PHP to store the text in a file and read it out when needed.

look at php function such as fopen http://au2.php.net/fopen
×

Success!

Help @JasonDFR spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.16,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...