Results 1 to 2 of 2

Thread: Put a var in Header command?

  1. #1

    Thread Starter
    Frenzied Member Jmacp's Avatar
    Join Date
    Jul 2003
    Location
    UK
    Posts
    1,959

    Put a var in Header command?

    If you have a url string say $url how do you put this in a header command...?


    something like,
    Code:
    header("location: $url");
    I wasn't sure if $url with work as it is inside quotes?

  2. #2
    I'm about to be a PowerPoster!
    Join Date
    Jan 2005
    Location
    Everywhere
    Posts
    13,647

    Re: Put a var in Header command?

    That will work if you use double quotes. Single-quoted string literals aren't parsed for variables.

Posting Permissions

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



Click Here to Expand Forum to Full Width