[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 258
  • Last Modified:

How can I have an employee change text on our web site without actually editing it on server?

Hi,

We are finishing up our new web site and on the home page we have a one line sentence that says, "Last week Fairrington Delivered 95.42% of its clients orders ON TIME!" I have no problem editing it every week since I'm the webmaster, but if I'm on vacation, we would like someone assigned to do this easily without getting access to the server or pages. I was thinking of a form or something that they could access at www.fairrington.com/changeontime and all it displays is a text box. They would enter the new number like 96.12 and click a button. Done. Does anyone know of anything easy to implement this? Javascript? Any help would be appreciated.

Thanks,
Matt
0
fairrington
Asked:
fairrington
  • 3
1 Solution
 
ClickCentricCommented:
Javascript is client-side...you'd still need a server-side script to implement the change along with any javascript you used.  Your idea of the simple one line form is really the best.  Just save that value to a file or a database and have it read in when the page is rendered.  Anything else would be overkill to change one little thing.
0
 
ClickCentricCommented:
Oh, and password protect the script so that not just anyone can do it.  A simple apache password should suffice...assuming you're using apache.
0
 
fairringtonAuthor Commented:
That sounds about right. Can you provide any sample code for the dump and how to add it into the main page to pull the text from the file? We are using IIS here. Thanks!
0
 
ClickCentricCommented:
Unfortunately, IIS and ASP are 2 things I won't touch.  For the password protection, assuming your hosting provider provides some sort of control panel, there's more than likely an option there to set a password for a directory (you'd have to create a directory/folder and put the form file with the update code in there.)  Beyond that, you're likely in an ASP environment and so I'm not really sure how you'd process it from there, I'm afraid.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now