Header() with querystring in php

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Limno
    New Member
    • Apr 2008
    • 92

    Header() with querystring in php

    Hi,

    header("locatio n:page.php?data ='$k'&type='$c' ");

    Can anyone suggest me how to do this code, need sample example, or is the above code is correct?

    Thanks.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    have you tried it?

    remove the quotation marks around the URL parameter values.

    Comment

    • kovik
      Recognized Expert Top Contributor
      • Jun 2007
      • 1044

      #3
      Isn't "Location" also supposed to be capitalized? I think it has to do with how picky the browser is, but do that as well as ~Dormilich's suggestion.

      Comment

      • Dormilich
        Recognized Expert Expert
        • Aug 2008
        • 8694

        #4
        I’ve not yet had problems with upper- or lowercase letters. Browsers are forgiving.

        Comment

        • Limno
          New Member
          • Apr 2008
          • 92

          #5
          Thank u Dormilich's Avatar, Its working...

          Comment

          • Dormilich
            Recognized Expert Expert
            • Aug 2008
            • 8694

            #6
            Thank u Dormilich's Avatar
            Call me Toph…
            Thank Dormilich, I’ll just do the visual representation.

            Dormilich's Avatar

            Comment

            Working...