PHPIntro Forms & Email (9&10)

Card Set Information

Author:
dalbabes
ID:
164047
Filename:
PHPIntro Forms & Email (9&10)
Updated:
2012-07-26 15:12:05
Tags:
PHP
Folders:

Description:
Short and Sweet Summary of PHP Forms
Show Answers:

Home > Flashcards > Print Preview

The flashcards below were created by user dalbabes on FreezingBlue Flashcards. What would you like to do?


  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?
    $_SERVER['']
  6. Function to kill the script immediately
    exit();
  7. How do you send a string to the URL or Domain top
    • header(Location: );
    • header("Location: http://www.example.com/")
  8. How to retrieve the url string
    .$_SERVER['QUERY_STRING']
  9. function for sending email and the four parameters
    • mail(to,subject,message,headers,parameters)
    • $headers .= 'To: Mary <mary@example.com>, Kelly <kelly@example.com>' . "\r\n";
    • $headers .= 'From: Birthday Reminder <birthday@example.com>' . "\r\n";
    • $headers .= 'Cc: birthdayarchive@example.com' . "\r\n";
    • $headers .= 'Bcc: birthdaycheck@example.com' . "\r\n";

What would you like to do?

Home > Flashcards > Print Preview