Limiting access on our news submission page

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • integravtec
    New Member
    • Feb 2007
    • 2

    Limiting access on our news submission page

    Hey guys, I'm new here. Just had a question, so I want to thank you in advance for the help. I not too familiar with programming other languages than Html, dhtml, and javascript. So I figured there would be a way to do it in javascript.

    I'm making a website and on the news page I would like it to be able to have a text box to upload text on to the news page but I only want 1 person to have access to upload the news events. How would I do this ?

    Can you guys help me out.

    Thank you,
    Frechiani
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Hello and welcome to The Scripts.

    You will need a server-side language to restrict access. Are you not familiar with any? If you're prepared to learn one or know the basics of one, I can move the question to that forum where you can get more help.

    Comment

    • Atli
      Recognized Expert Expert
      • Nov 2006
      • 5062

      #3
      Acoder is right.
      You need something like PHP or ASP.
      I reccomend php ;)

      Comment

      • iam_clint
        Recognized Expert Top Contributor
        • Jul 2006
        • 1207

        #4
        and i recomend asp! :P

        Comment

        • acoder
          Recognized Expert MVP
          • Nov 2006
          • 16032

          #5
          and I recommend ColdFusion!! Actually PHP's not too bad either!

          Comment

          • senaka
            New Member
            • Feb 2007
            • 23

            #6
            You can validate that person using AJAX so that no body sees your validation mechanism. what you do is get that 1 guy to enter some user name and password and get it posted to another html page. inaccessible to the rest of the world... this can be done using an authentication header. so in other words if the rest of the world doesn't authenticate themselves.... they can't post.


            or else another method is if your one and only guy has a fixed unique IP address you can validate his presence from that IP. Both these methods are possible using javascript only. I mean there is no need to go to server-side langs if you can do this.

            Comment

            • integravtec
              New Member
              • Feb 2007
              • 2

              #7
              Originally posted by acoder
              Hello and welcome to The Scripts.

              You will need a server-side language to restrict access. Are you not familiar with any? If you're prepared to learn one or know the basics of one, I can move the question to that forum where you can get more help.

              Yes, please I would appreciate that. Whats the difference from php to asp? Is one easier than the other ? I would like to learn the basics of the less complicated one lol.

              Thanks a lot

              Comment

              • junal
                New Member
                • Jan 2007
                • 22

                #8
                hey i guess you can use CakePhp framework and then you can use ACL to restrict your users. i hope it will help you !

                Comment

                • acoder
                  Recognized Expert MVP
                  • Nov 2006
                  • 16032

                  #9
                  Originally posted by integravtec
                  Yes, please I would appreciate that. Whats the difference from php to asp? Is one easier than the other ? I would like to learn the basics of the less complicated one lol.

                  Thanks a lot
                  Have a quick look at the following tutorials:
                  W3Schools PHP tutorial
                  Php.net Simple Tutorial
                  W3Schools ASP tutorial
                  to decide which is for you.

                  Both languages will do the task for you. The one to choose depends on factors such as cost, speed, complexity, background.

                  Comment

                  Working...