PHP Post

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • FrEaKmAn
    New Member
    • Aug 2007
    • 46

    PHP Post

    Hello

    I'm working on paypal payment system and I'm wondering how can I post data with PHP. I don't want any forms that have some hidden inputs, but everything should be hidden in PHP. I checked some modules (like on oscommerce) but I don't understand them. So does anybody know any code, class, tutorial for this?
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    You'd be smarter to use SESSIONS

    Hope this helps.

    Comment

    • FrEaKmAn
      New Member
      • Aug 2007
      • 46

      #3
      Originally posted by markusn00b
      You'd be smarter to use SESSIONS

      Hope this helps.
      what does a session has to do with post? I'm just wondering if there is a better way then "old" <form method="POST"> way..

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        Originally posted by FrEaKmAn
        what does a session has to do with post? I'm just wondering if there is a better way then "old" <form method="POST"> way..
        How is that method 'old'?

        Comment

        • FrEaKmAn
          New Member
          • Aug 2007
          • 46

          #5
          Originally posted by markusn00b
          How is that method 'old'?
          as I said, "old". It not old and it's used almost everywhere, but it's older comparing to the new methods..

          Comment

          • Markus
            Recognized Expert Expert
            • Jun 2007
            • 6092

            #6
            Originally posted by FrEaKmAn
            as I said, "old". It not old and it's used almost everywhere, but it's older comparing to the new methods..
            If it's the generally used method, I see no reason why you should use other methods. :)

            Comment

            • dlite922
              Recognized Expert Top Contributor
              • Dec 2007
              • 1586

              #7
              Originally posted by markusn00b
              You'd be smarter to use SESSIONS

              Hope this helps.
              Sessions can be dangerous, potentially hackable. The hacker can duplicate session or some of XSS.

              If he's using SSL, $_POST will be fine.

              If you don't want to store things in hidden fields, put them in a database.

              Because POST causes other issues (back button: page expired, and sometimes 404)

              Cheers,


              Dan

              Comment

              • Atli
                Recognized Expert Expert
                • Nov 2006
                • 5062

                #8
                Are you trying to have PHP POST the data to another website?
                If so, check out cUrl.

                It basically sends a HTTP request from within your PHP code, much like AJAX does from withing Javascript. It can send POST data and you can even have it use SSL.

                Comment

                Working...