PHPIntro Forms & Email (9&10)

  1. The Array that is created when you post a form
    • $_POST['input name from form']
    • remember the ' ' inside the brackets!
  2. What do superglobals start with?
  3. What does extract() do? What are the parameters?
    • extracts an array into different parts
    • extract(ArrayName,Duplicate Dealings, What to adjust the name to in case of duplicates)
  4. Name the two types of ways to send forms and what is the difference between the two?
    POST & GET, GET places the result in the title, but there is an upper limit on the number of characters because of that.
  5. What superglobal accesses the environment and server variables?
  6. Function to kill the script immediately
  7. How do you send a string to the URL or Domain top
    • header(Location: );
    • header("Location:")
  8. How to retrieve the url string
  9. function for sending email and the four parameters
    • mail(to,subject,message,headers,parameters)
    • $headers .= 'To: Mary <>, Kelly <>' . "\r\n";
    • $headers .= 'From: Birthday Reminder <>' . "\r\n";
    • $headers .= 'Cc:' . "\r\n";
    • $headers .= 'Bcc:' . "\r\n";
Card Set
PHPIntro Forms & Email (9&10)
Short and Sweet Summary of PHP Forms