about getting form variables

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • phpmagesh
    New Member
    • Nov 2008
    • 119

    about getting form variables

    Hi, Retriving data from html page using $_POST is one way.

    can anyone tell which of this three way is good for retriving data $_POST, $_REQUEST and $_GET.

    Which is safe and secure data retrive.

    Thanks

    Regards
    magesh
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    see this article of the W3C.
    ____________

    Comment

    • didoamylee
      New Member
      • Nov 2008
      • 16

      #3
      $_POST + $_GET = $_REQUEST;
      In other words $_REQUEST search a $_POST or $_GET data you may want to retreive.
      The $_GET can be seen in the browser addressbar ( so...not so good in most cases ).
      I personally use $_POST.

      Comment

      • Dheeraj Joshi
        Recognized Expert Top Contributor
        • Jul 2009
        • 1129

        #4
        Originally posted by Dormilich
        see this article of the W3C.
        ____________
        Good link Dorm... Thanx..

        Regards
        Dheeraj Joshi

        Comment

        Working...