using $_GET[] locally?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Geoff Cox

    #1

    using $_GET[] locally?

    Hello,

    I have code which works fine over the Internet using formmail to send
    the results by email but I am trying to run the code on my PC using
    IIS and I cannot get the correct xxx values for $_GET[xxx], to use

    echo &_GET[xxx] etc.

    The parameters being sent include

    &Slider+Values= +%0D%0ASituatio n+-+Social+Individ ual%3A+3+3+3+3+ 3+3+3+0
    &Slider+Values= +%0D%0ASituatio n+-+Formal+Individ ual%3A+3+3+3+3+ 3+3+3+1
    &Slider+Values= +%0D%0ASituatio n+-+Social+Group%3 A+3+3+3+3+3+3+3 +2

    What do I use for the xxx values in $_GET[xxx]?!

    Cheers

    Geoff
  • Rik

    #2
    Re: using $_GET[] locally?

    Geoff <Coxwrote:
    Hello,
    >
    I have code which works fine over the Internet using formmail to send
    the results by email but I am trying to run the code on my PC using
    IIS and I cannot get the correct xxx values for $_GET[xxx], to use
    >
    echo &_GET[xxx] etc.
    >
    The parameters being sent include
    >
    &Slider+Values= +%0D%0ASituatio n+-+Social+Individ ual%3A+3+3+3+3+ 3+3+3+0
    &Slider+Values= +%0D%0ASituatio n+-+Formal+Individ ual%3A+3+3+3+3+ 3+3+3+1
    &Slider+Values= +%0D%0ASituatio n+-+Social+Group%3 A+3+3+3+3+3+3+3 +2
    >
    What do I use for the xxx values in $_GET[xxx]?!
    print_r($_GET); and see.

    --
    Rik Wasmus
    Posted on Usenet, not any forum you might see this in.
    Ask Smart Questions: http://tinyurl.com/anel

    Comment

    • Geoff Cox

      #3
      Re: using $_GET[] locally?

      On Tue, 13 Mar 2007 23:52:30 +0100, Rik <luiheidsgoeroe @hotmail.com>
      wrote:
      >print_r($_GET) ;
      Thanks for the idea.

      I tried above and get

      Array ( [redirect] =http://127.0.0.1/assist/thanks.htm [recipient]
      =extraemails [realname] =SPA Form [First_name] =geoff
      [Last_name] =cox [Slider_Values] =Situation - \'Scripted\'
      Conversations: 3 0 3 3 3 3 3 3 )

      I am only getting the first of the [Slider_Values] - any idea why?

      Cheers

      Geoff

      Comment

      • Rik

        #4
        Re: using $_GET[] locally?

        Geoff <Coxwrote:
        On Tue, 13 Mar 2007 23:52:30 +0100, Rik <luiheidsgoeroe @hotmail.com>
        wrote:
        >
        >print_r($_GET) ;
        >
        Thanks for the idea.
        >
        I tried above and get
        >
        Array ( [redirect] =http://127.0.0.1/assist/thanks.htm [recipient]
        =extraemails [realname] =SPA Form [First_name] =geoff
        [Last_name] =cox [Slider_Values] =Situation - \'Scripted\'
        Conversations: 3 0 3 3 3 3 3 3 )
        >
        I am only getting the first of the [Slider_Values] - any idea why?
        Yes, the last one sticks, overwriting the rest. You'd either have to
        manually parse the string for it's contents if you don't want this
        (someone posted a reasoonable solution on http://www.php.net/parse_str, or
        another solution is the add '[]' at the end of the keys that repeat, as
        PHP will then create an array for you.
        --
        Rik Wasmus
        Posted on Usenet, not any forum you might see this in.
        Ask Smart Questions: http://tinyurl.com/anel

        Comment

        • Geoff Cox

          #5
          Re: using $_GET[] locally?

          On Wed, 14 Mar 2007 00:44:19 +0100, Rik <luiheidsgoeroe @hotmail.com>
          wrote:
          >Geoff <Coxwrote:
          >
          >On Tue, 13 Mar 2007 23:52:30 +0100, Rik <luiheidsgoeroe @hotmail.com>
          >wrote:
          >>
          >>print_r($_GET );
          >>
          >Thanks for the idea.
          >>
          >I tried above and get
          >>
          >Array ( [redirect] =http://127.0.0.1/assist/thanks.htm [recipient]
          >=extraemails [realname] =SPA Form [First_name] =geoff
          >[Last_name] =cox [Slider_Values] =Situation - \'Scripted\'
          >Conversation s: 3 0 3 3 3 3 3 3 )
          >>
          >I am only getting the first of the [Slider_Values] - any idea why?
          >
          >Yes, the last one sticks, overwriting the rest. You'd either have to
          >manually parse the string for it's contents if you don't want this
          >(someone posted a reasoonable solution on http://www.php.net/parse_str, or
          >another solution is the add '[]' at the end of the keys that repeat, as
          >PHP will then create an array for you.
          Rik,

          Adding the [] does the trick!

          Many thanks,

          Geoff

          Comment

          Working...