I am a complete novice with PHP but am trying to work through some code I found on the web to add a contact form to my page. I have understood most of it but am confused about the difference between the $GLOBALS and the $_SESSION arrays as they both seem to be referred to as global. Can someone please explain the difference and when one is preferred to the other? Are they affected similarly by HTTP redirects (within a site)? What causes each of them to from out of scope?
Thanks for the help!