Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Feb 2010
    Location
    God's Own Country
    Posts
    87
    Thanks
    6
    Thanked 0 Times in 0 Posts

    passing values through header location

    Hellooo.... Can anyone tell me about how to pass more than one value through header location...I gave it like header('location:desc.php?qd=$qpid&sub=$sub");...but I don't thik it's working...Is the format that I have given right??

  • #2
    Senior Coder
    Join Date
    May 2005
    Posts
    2,137
    Thanks
    96
    Thanked 72 Times in 72 Posts
    You can do variables into sessions, or also hidden forms.
    Rowsdower! has accused me of having mental problems, and the administrator allowed it. What a great forum huh?

  • #3
    Senior Coder rangana's Avatar
    Join Date
    Feb 2008
    Location
    Cebu City, Philippines
    Posts
    1,752
    Thanks
    65
    Thanked 372 Times in 365 Posts
    Quote Originally Posted by sradha View Post
    I gave it like header('location:desc.php?qd=$qpid&sub=$sub");...but I don't thik it's working...Is the format that I have given right??
    Try to use double-quote here:
    Code:
    header("location:desc.php?qd=$qpid&sub=$sub")
    ...that should work fine then. That way, variables are parsed.
    Learn how to javascript at 02geek

    The more you learn, the more you'll realize there's much more to learn
    Ray.ph


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •