Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

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

Create a web page that is updatable by someone with a password

Hello everybody,
    I want to create a web page (such as "Events") for a client's web site so that they can log in with a pasword and change the contents. I don't want the viewers to see the login page or that there is an existence of one. Is this possible ? If possible how do I go about that ?
Thank you in advance,

Sean.

P.S I have completed the rest of the site.
0
meperera
Asked:
meperera
1 Solution
 
Dushan De SilvaTechnology ArchitectCommented:
You can use sessions in ASP, PHP or JSP.


BR Dushan
0
 
mepereraAuthor Commented:
How do I go about it though ?
0
 
Dushan De SilvaTechnology ArchitectCommented:
here is an example
step1
<?
if ($PHPSESSID)
  session_start($PHPSESSID);
else
 session_start();

  // if form is submitted
  if ($submit <> "")
  {
     session_register("Lastname");
     session_register("Firstname");
     session_register("Email");
     
     header("Location: step2.html");  // or include("step2.html"); exit();
  }
?>
........ a form here

step2
<?
if ($PHPSESSID)
  session_start($PHPSESSID);
else
 session_start();

print $Lastname;
print $Firstname;
print $Email;
?>

--------------------------------------------------------------------------------

Have a look at http://www.php.net/manual/en/ref.session.php
The complete manual for session

0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
mepereraAuthor Commented:
Would there be anywhere where i can look at a working example ? I am quite new to this concept and want to start from scratch. If i use sesions would the other viewers see that people can log in using a password. As I mentioned above I mentioned above I want one person to be able to add,remove or update the "events" page of the site without having to access the web server .

Thanks again Dushan.
0
 
radnorCommented:
Will they have access to FTP?  ANd is PHP available?
0
 
Dushan De SilvaTechnology ArchitectCommented:
You are Welcome!
Yes. Please refer to PHP docs from

www.php.net
http://www.w3schools.com/php/default.asp

BR Dushan
0
 
mepereraAuthor Commented:
They will not be using FTP they should be able to update through their browser.
0
 
mepereraAuthor Commented:
any suggestions ?
0
 
John-BaylesCommented:
I would take a look at a content management system

What it sounds like to me is you need a system like DOTNET NUKE which has an edit button on everypage and users can login to edit a particular page:

http://www.dotnetnuke.com/

Here is a massive list of other content management system that you could use:
http://en.wikipedia.org/wiki/List_of_content_management_systems
0

Featured Post

[Webinar] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

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