Jump to content

Masna

Staff Alumni
  • Content Count

    288
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Masna

  • Rank
    Advanced Member
  • Birthday 10/12/1990

Profile Information

  • Gender
    Male
  • Location
    New York
  1. $wanted_values = array(); foreach($colors as $towns){ $hello = explode(" ", $towns); $wanted_values[] = $hello[1]; } //now use $wanted_values however you want - [0] -> "hello", [1] -> "this", etc.
  2. Masna

    Redirect help

    Once anything is outputted by a php page, php flushes the buffered implied headers (auto-generated unless explicitly defined otherwise, things like Content-Type) and starts generating a response for the HTTP request. Because of echo "anything";, you are forcing this to happen. Thus, any headers you try to set thereafter (however you do it, including using the header() function) are rendered useless. It'd be like trying to set an accept encoding in your POST body - it just makes no sense.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.