Author Topic: How to allow novice users to add data to my websites php files???  (Read 381 times)

0 Members and 1 Guest are viewing this topic.

Offline evBenjiTopic starter

  • Irregular
  • Posts: 2
    • View Profile
Hi I have built a website for a football club.

It is made up of about 20 php files.

The club is a community and everyone want to add stuff.

Which is great and i want them to.

But by no way can i let them use ftp, or mess with code, or be administrators etc etc no way.

I do have cutenews running but its truly no good and its final appearance is poor.

Anyhow smply i got a guy who wants to add names to a "best players" table which sits in a css div

How can i let him without giving him access to everything else???

Offline dustinmm80

  • Irregular
  • Posts: 1
    • View Profile
Re: How to allow novice users to add data to my websites php files???
« Reply #1 on: July 29, 2010, 04:49:53 PM »
Use some Javascript. On double-click inside the div replace the content of the div with a form containing a textbox(or textarea) containing the content. Then just handle the form's submit and save the info to your database. If you don't have a database, you need one.
« Last Edit: July 29, 2010, 04:50:27 PM by dustinmm80 »

Offline petroz

  • Enthusiast
  • Posts: 178
    • View Profile
Re: How to allow novice users to add data to my websites php files???
« Reply #2 on: July 29, 2010, 06:52:53 PM »
Integrate mysql and a few forms and you can have complete control.

Offline evBenjiTopic starter

  • Irregular
  • Posts: 2
    • View Profile
Re: How to allow novice users to add data to my websites php files???
« Reply #3 on: July 30, 2010, 01:20:41 AM »
I definitly want a kind of editing area in the div.

Something like CKeditor would be great.

But how the hell does one actually integrate the editor???

im just getting past a being a beginner in php however my idea would be to
 have a File MAnagement login script to files

select the file which opens the CKeditor make changes save and then its done.

thats the algorithm but any ips on where to start???

Javascript tip you'll have to expalin more mate.