set POST using GET

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • geraldjr30
    New Member
    • Jan 2009
    • 60

    set POST using GET

    hi,

    i would like to know how I can set the $_POST[store] to the $_GET[store] passed from the previous page
    would it be something like:

    Code:
    set($_POST['store'] = $_GET['store']);
    thanks in advance,
    geebee
  • Markus
    Recognized Expert Expert
    • Jun 2007
    • 6092

    #2
    Assign it as you would any other variable.

    Code:
    $_POST['index'] = $_GET['index'];

    Comment

    • geraldjr30
      New Member
      • Jan 2009
      • 60

      #3
      thanks. thats helps.

      Comment

      • Markus
        Recognized Expert Expert
        • Jun 2007
        • 6092

        #4
        Originally posted by geraldjr30
        thanks. thats helps.
        Glad I could help.

        Comment

        • xaxis
          New Member
          • Feb 2009
          • 15

          #5
          I'm simply curious, under what context are you needing/wanting to do this?

          Comment

          • Markus
            Recognized Expert Expert
            • Jun 2007
            • 6092

            #6
            Originally posted by xaxis
            I'm simply curious, under what context are you needing/wanting to do this?
            I thought the same..

            Comment

            • Atli
              Recognized Expert Expert
              • Nov 2006
              • 5062

              #7
              Yea, this seems an odd thing to want to do.

              Comment

              Working...