SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    May 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Is it possible to pass an id using location header?

    <?php header('Location: viewPollResults.php?pollId= echo $pollId'); ?>

    If it is possible, i'm having trouble appending the echo statement can anyone help please?

  2. #2
    Hosting Team Leader silver trophybronze trophy
    cpradio's Avatar
    Join Date
    Jun 2002
    Location
    Ohio
    Posts
    4,807
    Mentioned
    141 Post(s)
    Tagged
    0 Thread(s)
    You need to concatenate, instead of trying to echo/print out the value
    Code:
    <?php header('Location: viewPollResults.php?pollId=' . $pollId); ?>

  3. #3
    SitePoint Member
    Join Date
    May 2012
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by cpradio View Post
    You need to concatenate, instead of trying to echo/print out the value
    Code:
    <?php header('Location: viewPollResults.php?pollId=' . $pollId); ?>
    Thank you very much, you saved my bacon...


Bookmarks

Posting Permissions

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