diff --git a/week-8/NiceSimpleContactForm/contactengine.php b/week-8/NiceSimpleContactForm/contactengine.php new file mode 100644 index 0000000..ec4636b --- /dev/null +++ b/week-8/NiceSimpleContactForm/contactengine.php @@ -0,0 +1,43 @@ +"; + exit; +} + +// prepare email body text +$Body = ""; +$Body .= "Name: "; +$Body .= $Name; +$Body .= "\n"; +$Body .= "Tel: "; +$Body .= $Tel; +$Body .= "\n"; +$Body .= "Email: "; +$Body .= $Email; +$Body .= "\n"; +$Body .= "Message: "; +$Body .= $Message; +$Body .= "\n"; + +// send email +$success = mail($EmailTo, $Subject, $Body, "From: <$EmailFrom>"); + +// redirect to success page +if ($success){ + print ""; +} +else{ + print ""; +} +?> \ No newline at end of file diff --git a/week-8/NiceSimpleContactForm/contactthanks.php b/week-8/NiceSimpleContactForm/contactthanks.php new file mode 100644 index 0000000..08a0e4d --- /dev/null +++ b/week-8/NiceSimpleContactForm/contactthanks.php @@ -0,0 +1,35 @@ + + + + A Nice & Simple Contact Form + + + + + + +
+ + A Nice & Simple Contact Form +

By CSS-Tricks

+ + +

+ + +

Your message has been sent!


+ +

Back to Contact Form

+ +
+ + + + + + + \ No newline at end of file diff --git a/week-8/NiceSimpleContactForm/images/stripe.png b/week-8/NiceSimpleContactForm/images/stripe.png new file mode 100644 index 0000000..fa739c2 Binary files /dev/null and b/week-8/NiceSimpleContactForm/images/stripe.png differ diff --git a/week-8/NiceSimpleContactForm/images/title.gif b/week-8/NiceSimpleContactForm/images/title.gif new file mode 100644 index 0000000..a7da5da Binary files /dev/null and b/week-8/NiceSimpleContactForm/images/title.gif differ diff --git a/week-8/NiceSimpleContactForm/index.html b/week-8/NiceSimpleContactForm/index.html new file mode 100644 index 0000000..36681b1 --- /dev/null +++ b/week-8/NiceSimpleContactForm/index.html @@ -0,0 +1,53 @@ + + + + + A Nice & Simple Contact Form + + + + + + + + +
+ + A Nice & Simple Contact Form

+

By CSS-Tricks

+ +

There are a million contact form examples on the web, why this one? Because it's SIMPLE, it's FREE, it WORKS, it's VALID, and it's primarily styled with CSS.

+ +

If you are trying to contact CSS-Tricks, DO NOT USE THIS FORM. This is just an example, my real contact form is here.

+ +

[DOWNLOAD THIS EXAMPLE]

+ +
+ +
+ + + + + + + + + +
+ + + +
+ +
+ +

Check out a version of this with SPAM protection.

+ +
+ +
+ + + + \ No newline at end of file diff --git a/week-8/NiceSimpleContactForm/style.css b/week-8/NiceSimpleContactForm/style.css new file mode 100644 index 0000000..4cb03c0 --- /dev/null +++ b/week-8/NiceSimpleContactForm/style.css @@ -0,0 +1,61 @@ +* { + margin: 0; + padding: 0; +} + +body { + font-size: 62.5%; + font-family: Helvetica, sans-serif; + background: url(images/stripe.png) repeat; +} + +p { + font-size: 1.3em; + margin-bottom: 15px; +} + +#page-wrap { + width: 660px; + background: white; + padding: 20px 50px 20px 50px; + margin: 20px auto; + min-height: 500px; + height: auto !important; + height: 500px; +} + +#contact-area { + width: 600px; + margin-top: 25px; +} + +#contact-area input, #contact-area textarea { + padding: 5px; + width: 471px; + font-family: Helvetica, sans-serif; + font-size: 1.4em; + margin: 0px 0px 10px 0px; + border: 2px solid #ccc; +} + +#contact-area textarea { + height: 90px; +} + +#contact-area textarea:focus, #contact-area input:focus { + border: 2px solid #900; +} + +#contact-area input.submit-button { + width: 100px; + float: right; +} + +label { + float: left; + text-align: right; + margin-right: 15px; + width: 100px; + padding-top: 5px; + font-size: 1.4em; +} \ No newline at end of file diff --git a/week-8/__MACOSX/NiceSimpleContactForm/._index.html b/week-8/__MACOSX/NiceSimpleContactForm/._index.html new file mode 100644 index 0000000..7b87b71 Binary files /dev/null and b/week-8/__MACOSX/NiceSimpleContactForm/._index.html differ diff --git a/week-8/form.html b/week-8/form.html new file mode 100644 index 0000000..33faaae --- /dev/null +++ b/week-8/form.html @@ -0,0 +1,91 @@ + + + + + + Website Contact Form + + + + +
+

Website Contact Form

+

Required fields are followed by *.

+
+

Contact information

+ +

+ + +

+

+ + +

+

+ + +

+ + +

+
+ +
+ +
+
+ + + + \ No newline at end of file diff --git a/week-8/form2.html b/week-8/form2.html new file mode 100644 index 0000000..fa74e1a --- /dev/null +++ b/week-8/form2.html @@ -0,0 +1,74 @@ + + + + + Contact Form + + + +
+ + +

+ + +

+ + + +

+ + + +

+ + +
+ + + + \ No newline at end of file