MMDT1146 PHP Programming
Week 5
Week 5 Email Notes:
|
In Class Lab 5 (Completed in class) This lab is to test your knowledge of being able to create a php script that sends a confirmation email to the customer and an email to a corporate email account. Create a subfolder on your web server named "lab5". (This may already be done for you from doing the in class exercises.) Under the subfolder "lab5" that you just created, you will need to create several files. The names are of your choosing. In my example, I called them "orderform.php", "mail.php", "error.php", badcode.php, and "thanx.php". The lab must contain several items. Your resulting output should like similar to this. Title your pages. On the first page. I named mine "orderform.php" :
Create a separate php file to process the form data. I named mine "mail.php":
Create an error file to recover from an error. I named mine "error.php":
Create a thank you page to confirm the submission. I named mine "thanx.php".:
Integrate the captcha code into your mailer to stop spammers from automatically filling out your mail.php form. Assignment is due 1 week from when it was assigned. 50% penalty if late.
|
Lab 5a (Individual homework assignment) This lab is to test your knowledge of being able to create a php script that sends a confirmation email to the customer and an email to a corporate email account. Create a subfolder on your web server named "lab5a". Under the subfolder "lab5a" that you just created, you will need to create several files. The names are of your choosing. In my example, I called them "orderform.php", "mail.php", "error.php", and "thanx.php". The lab must contain several items. Your resulting output should like similar to this. Title your pages. On the first page. I named mine "orderform.php" :
Create a separate php file to process the form data. I named mine "mail.php":
Create an error file to recover from an error. I named mine "error.php":
Create a thank you page to confirm the submission. I named mine "thanx.php".:
Integrate the captcha code into your mailer to stop spammers from automatically filling out your mail.php form. Assignment is due 1 week from when it was assigned. 50% penalty if late.
|