Question
Need help making a PHP code for a contact form I just made. I need help receiving the information from my contact form (i.e Name,
Need help making a PHP code for a contact form I just made. I need help receiving the information from my contact form (i.e Name, email address, phone number, and comments.)
:root { --primary: #ddd; --dark: #333; --light: #fff; --shadow: 0 1px 5px rgba(104, 104, 104, 0.8); }
html { box-sizing: border-box; font-family: Times New Roman, Times, serif; color: var(--dark); }
body { background: #8c8fa5; margin: 30px 50px; line-height: 1.4; }
.btn { background: var(--dark); color: var(--light); padding: 0.6rem 1.3rem; text-decoration: none; border: 0; }
img { max-width: 100%; }
.wrapper { display: grid; grid-gap: 20px; }
/* Navigation */ .main-nav ul { display: grid; grid-gap: 20px; padding: 0; list-style: none; grid-template-columns: repeat(4, 1fr); }
.main-nav a { background: var(--primary); display: block; text-decoration: none; padding: 0.8rem; text-align: center; color: var(--dark); text-transform: uppercase; font-size: 1.1rem; box-shadow: var(--shadow); }
.main-nav a:hover { background: var(--dark); color: var(--light); }
/* Top Container */ .top-container { display: grid; grid-gap: 20px; grid-template-areas: 'showcase showcase top-box-a' 'showcase showcase top-box-b'; }
/* Showcase */ .showcase { grid-area: showcase; min-height: 400px; background-image: url(https://image.ibb.co/kYJK8x/showcase.jpg); background-size: cover; background-position: center; padding: 3rem; display: flex; flex-direction: column; align-items: start; justify-content: center; box-shadow: var(--shadow); }
.showcase h1 { font-size: 4rem; margin-bottom: 0; color: var(--light); }
.showcase p { font-size: 1.3rem; margin-top: 0; color: var(--light); }
/* Top Box */ .top-box { background: var(--primary); display: grid; align-items: center; justify-items: center; box-shadow: var(--shadow); padding: 1.5rem; }
.top-box .price { font-size: 2.5rem; }
.top-box-a { grid-area: top-box-a; }
.top-box-b { grid-area: top-box-b; }
/* Boxes */ .boxes { display: grid; grid-gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.box { background: var(--primary); text-align: center; padding: 1.5rem 2rem; box-shadow: var(--shadow); }
/* Info */ .info { background: var(--primary); box-shadow: var(--shadow); display: grid; grid-gap: 30px; grid-template-columns: repeat(2, 1fr); padding: 3rem; }
/* Portfolio */ .portfolio { display: grid; grid-gap: 20px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.portfolio img { width: 100%; box-shadow: var(--shadow); }
/* Footer */ footer { margin-top: 2rem; background: var(--dark); color: var(--light); text-align: center; padding: 1rem; }
/* Media Queries */ @media (max-width: 700px) { .top-container { grid-template-areas: 'showcase showcase' 'top-box-a top-box-b'; }
.showcase h1 { font-size: 2.5rem; }
.main-nav ul { grid-template-columns: 1fr; }
.info { grid-template-columns: 1fr; }
.info .btn { display: block; text-align: center; margin: auto; } }
@media (max-width: 500px) { .top-container { grid-template-areas: 'showcase' 'top-box-a' 'top-box-b'; } }
@import url("https://fonts.googleapis.com/css?family=Pacifico"); @import url("https://fonts.googleapis.com/css?family=Bitter"); @import url("https://fonts.googleapis.com/css?family=Cuprum");
* { margin: 0; padding: 0.5px; box-sizing: border-box; }
.header { background-color: azure; background-size: auto 30px; background-repeat: no-repeat; background-position: center; box-shadow: 0px 3px 3px 0px rgba(0,0,0,0.25); }
.header { display: inline-block; width: 100%; height: 60px; padding: 3px; text-align: center; }
.header > .navigation > a { display:inline-block; padding: 16px;
}
.header a{ text-decoration:none; font-size: 25px; color: #DC143C; font-weight: bold; font-family: Cuprum; }
.header > label { display:none; }
.header > input { display:none; }
@media screen and (max-width: 500px) { .header > label { display: inline-block; width: 38px; height: 38px; background-size: contain; /* use menu icon as background image for label */ background-image: url("http://foodsci.rutgers.edu/RU_INF_SEAL.jpg"); } .header > .navigation { display:none; } .header { position: relative; } .header > input:checked + .navigation { display: block; position: absolute; top: 60px; right: 0px; z-index: 1; background-color:rgba(0,0,0,0.7); }
.header > .navigation > a { display: block; margin: 10px; color: white; } }
.footer { font-size: 10px; font-family: Bitter; color: #262626; position: relative; top: 25px; text-align: center; }
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-box-sizing: border-box; -moz-box-sizing: border-box; -webkit-font-smoothing: antialiased; -moz-font-smoothing: antialiased; -o-font-smoothing: antialiased; font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { font-family: "Roboto", Helvetica, Arial, sans-serif; font-weight: 100; font-size: 12px; line-height: 30px; color: #404040; background: #8c8fa5; /* opaque red */ }
.container { max-width: 400px; width: 100%; margin: 0 auto; position: relative; }
#contact input[type="text"], #contact input[type="email"], #contact input[type="tel"], #contact input[type="url"], #contact textarea, #contact button[type="submit"] { font: 400 12px/16px "Roboto", Helvetica, Arial, sans-serif; }
#contact { background: #F9F9F9; padding: 25px; margin: 150px 0; box-shadow: 0 0 20px 0 rgba(0, 0, 0, 0.2), 0 5px 5px 0 rgba(0, 0, 0, 0.24); }
#contact h3 { display: block; font-size: 30px; font-weight: 300; margin-bottom: 10px; }
#contact h4 { margin: 5px 0 15px; display: block; font-size: 13px; font-weight: 400; }
fieldset { border: medium none !important; margin: 0 0 10px; min-width: 100%; padding: 0; width: 100%; }
#contact input[type="text"], #contact input[type="email"], #contact input[type="tel"], #contact input[type="url"], #contact textarea { width: 100%; border: 1px solid #ccc; background: white; margin: 0 0 5px; padding: 10px; }
#contact input[type="text"]:hover, #contact input[type="email"]:hover, #contact input[type="tel"]:hover, #contact input[type="url"]:hover, #contact textarea:hover { border: 1px solid #aaa; }
#contact textarea { height: 100px; max-width: 100%; resize: none; }
#contact button[type="submit"] { cursor: pointer; width: 100%; border: none; background: rgba(220,20,60,0.9); color: #FFF; margin: 0 0 5px; padding: 10px; font-size: 15px; }
#contact button[type="submit"]:hover { background: #9B0533; -webkit-transition: background 0.3s ease-in-out; -moz-transition: background 0.3s ease-in-out; transition: background-color 0.3s ease-in-out; }
/* Footer */ footer { margin-top: 2rem; background: var(--dark); color: var(--light); text-align: center; padding: 1rem; }
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started