$99 Websites + Website Design 5505 Sun Harbor Road Panama City, Florida 32401 850-329-3425 http://website99.us https://www.google.com/maps/place/$99+Websites+%2B+Website+Design/@30.1842909,-85.7322502,15z/data=!4m5!3m4!1s0x0:0x61b35c1bb4fa6eac!8m2!3d30.1842909!4d-85.7322502
Thursday, January 31, 2019
This Is What It Feels Like When Your Child Finally Goes to College
How to Map Out Your Finances For 2019
Here Are the 5 'Soft Skills' Businesses Need Most, According to LinkedIn
Regardless of the Brexit Outcome, British Prime Minister Theresa May Is a Determined Negotiator. Here's What You Can Learn From Her
In 1 Sentence, Eventbrite CEO Julia Hartz Reveals She Has Something That Often Leads to Succe
5 Career Lessons to Learn From Tom Brady
5 Super Bowl Ads That Backfired Terribly
How Small Businesses Are Finding Ways to Advertise Beyond Facebook and Instagram
How to Discover Your Leadership Blind Spots
5 Business Travel Hacks That You Can Pack in Your Suitcase
Alan Alda Just Gave the Best Speech of His Life. Here's the 1 Trick He Uses to Communicate More Effectively
Want to Get Started with AI? This Expert Has 5 Recommendations
3 Phrases That Make Your Customers Think No One Knows What's Going On At Your Company
3 Ways That Mentally Strong People Avoid Self-Sabotaging Behaviors
How to Derive More Joy From Your Work
What Women Business Owners Really Need to Succeed, According to a New Study
The One Piece of Career Advice I Wish I'd Known When I Was Younger
You Don't Have to Memorize Every Speech. Here's When You Should Use a Teleprompter
3 Social Media Lessons From a Doll With More Than 109,000 Instagram Followers
What to Do When Your Business Flight Is Overbooked
4 Ways to Embed Inclusivity Into Your Culture
Need a Good Business Idea? Take a Look In the Mirror
Painful Truths About Hiring That Every Entrepreneur Needs to Know
Can't Find The Right Candidate For The Job? These Hiring Tips will help!
Do This One Thing Four Times a Week and You'll Think More Clearly, A New Scientific Study Has Found
Why Colorado Springs is the Next High-Growth Colorado City
Are Working Moms Less Devoted To Their Work?
Here's How Bots Steal Your Most Private Information
How to Handle Unexpected Conflict With a Business Partner
Forget Demographics. This Is the Powerful Tool You Should Be Using in Your Marketing
Your Guide to Writing Google Ads That Sell
Companies Are Losing Customers Because of This 1 Overlooked Practice
Want Your Business to Stand Out? You Need to Create a Loyal Community. Here's How
From $227 Million to $3.8 Billion: The Unlikely Story of How Robert Kraft Bought the New England Patriots
It Costs More Than $3,000 to Onboard New Employees -- Here Is Why It Is Worth It
Why Marketing Automation Matters for Your Business
Want to Retire Early? Becoming an Entrepreneur Is Your Best Bet
Poorly-Run Meetings Can Cost You Thousands Each Year. Here's How to Fix Them
3 Marketing Ideas You Can Learn From the Greatest Super Bowl Ads (Without the Price Tag)
It's Bad, But Are You Focused On The Right Things To Fix It?
Feeling Gloomy This Winter? Here Are 6 Ways to Boost Your Mood
3 Times It's OK to Quit Your Job Without Another One Lined Up
3 Ways to Access an Insider's View of Venture Capital
It Took Richard Branson Just 1 Word to Give Elon Musk Some Brilliant Career Advice
Want Meetings That Actually Get Results? Get Rid of These 5 Issues
In 12 Words, Einstein Explains What It Means to Be a High Performing Leader
Want To Thrive In The Age of AI? Follow 3 Simple Rules
This Fund Will Invest $100 Million in Women-Led Businesses. Here's Why That Matters to You
Here's Why Your Tax Refund Will Likely Be Late This Year. And Either Smaller or Larger Than You Expect
I Quit Twitter and I Can't Believe How Much It Improved My Life
Quitting Facebook for 4 Weeks Can Make You Happier, Stanford and NYU Research Shows
7 Tom Brady Leadership Secrets That Will Bring You Remarkable Success--On and Off the Field
This Teen's Mom Says He Found Apple's Big FaceTime Security Bug a Week Ago (But She Couldn't Get Anyone to Listen)
4 Business Instagrams to Follow Immediately
17 Daily Habits Practiced by Highly Successful People
Simon Sinek Says Understanding 1 Thing Will Speed Up Your Success as a Leader
The Economic Forecast According to Yelp: a Downturn Is Coming
Wednesday, January 30, 2019
Why Most Successful People Fail Miserably First
A Surprising Simple Solution to the Fake News Problem
Four Winning Traits Every Star Employee Has (and How to Spot Them)
Facebook Just Shut Down an App It Used to Secretly Pay Teenagers to Install Spyware on Their Smartphones
Disney, Universal, Apple, and Netflix All Want J.J. Abrams. Here's Why
You Can't Resist Comparing the Polar Vortex to Antarctica, Everest, or Mars. Neuroscience Explains Why
7 Ways to Get the Best Night's Sleep in a Hotel Room
Why Your Phone May Be the Biggest Roadblock to Success
Why Google's Workers Claim the Company is 'Out to Lunch'
Looking to Improve Your Business? Don't Let Your Employees Come to Work When Sick
4 Finance Rules for Keeping a Startup in the Black
Why Remote Employees Are Most Likely to Quit (and How to Keep Them)
The 1 Trick Oprah and Richard Branson Use to Catapult Their Careers
Richard Branson Says This Is the Most Important Thing for Entrepreneurs to do -- And You Can Start Right Now
6 Tips for Writing a Cover Letter That Will Get You Hired
Working Out of This 1 Spot Can Boost Your Productivity, Creativity, and Happiness
Marketing to Gods - Part 3
Difficult Person Driving You Nuts? Here are 3 Strategies to Try if You've Tried Everything Else
Here's What You Need to Know About the Saints Fans' Lawsuit Against the NFL
These 3 Principles Will help you Navigate A New Business Partnership
4 Easy Ways to De-Escalate Workplace Conflict
A Living Legacy: 33 Powerful Teachings From Zen Master Thich Nhat Hanh
How to Plan Your Entire 2019 Content Calendar in 5 Easy Steps
The Power of People: How Backroads Became the World's Largest Adventure Travel Company (With Nearly Perfect Guest Ratings)
The 1 Reason Why Coffee Meetings Are the Best Way to Build a Strong Professional Network
The Importance of Creating a Multichannel Marketing Strategy
How to Increase Accountability for Your Budget Plan
The Simple Mindset Shift Elite Athletes Use in High-Stress Situations to Calm Their Nerves
To Survive a Recession, Your Business Needs 'Stickiness' -- Here's Why
Think You Have a Great Idea for a Small Business? Here's How to Know
How the Best Leaders Put the Needs of Others Before Their Own
Make Your Customers Happy And Close Sales At Warp Speed with 4 Steps That Anyone Can Follow
In 4 Words, Will Smith Outlines the Secret to True Happiness in Life
Successful People Think Small, Not Big. Here's Why
Interruptions Steal a Ton of Your Time. Here Are 3 Ways to Get Those Hours Back
The Secret Ingredient for Raising Financially Responsible Kids: Gratitude
This 1 Simple Exercise Will Help You Envision the Future You Want (and It Only Takes 5 Minutes)
How to Avoid the Time-Sucking Cash-Flow Nightmare of Unpaid Client Invoices
Is Your Device Both Your Lifeline and Your Achilles Heel? Here's How to Responsibly Unplug
In Just 8 Words, This Emotional Super Bowl Ad Nails Why You're Not Reaching Your Potential
The Smartest Parents Let Their Children Fail
In 12 Words, Richard Branson Lays Out His Best Relationship Advice (Including His Definition of Love)
How Can You Be Sure You Have Emotional Intelligence? Begin by Asking Yourself 11 Spot-on Questions
Miki Agrawal's Unapologetic New Book Offers a Glimpse Into the Mind of the Fallen Entrepreneur
How Old Is Your Company? (Trick Question)
3 Ways to Use Coffee to Increase Collaboration and Innovation
Tuesday, January 29, 2019
How Leaders Can Take The Pain Out of Giving Performance Reviews
I Reduced My Screen Time by 50 Percent and It Wasn't That Hard. Here's How I Did It
How to Overcome Any Entrepreneurial Challenge as a Founder
6 Top Digital Marketing Conferences You Have to Attend in 2019
3 Smart Strategies for Managing Your Marketing Budget
6 Ways to Revamp Your Weekly Routine
How to Clear Your Mind So You Can Do Your Best Work
9 Critical Success Factors Startup Founders Always Forget
The Packaging Industry is Massive, and It's About to Be Disrupted
How Workspaces for Women Are Thriving in the Wake of #MeToo
Uber's New 'Unhappy Hour' Promotion: Get a Free Ride if Your Super Bowl Team Loses
How to Praise a Stellar Employee Without 'Playing Favorites'
Deloitte Partners Explain Why Leaders Should Adapt an Entrepreneurial Framework to Survive
How to Survive as an Entrepreneur When You Can't Pay Yourself
The Simple Recipe for Creativity That Everyone Should Know
This 1 Simple Habit Will Make You Stress-Proof This Year
How a Business Accelerator Program Can Impact Your Future
Purpose Washing, Hustle Culture, and Automation: Business at a Crossroads
This 1 Skill You Should Start Building Today to Improve Your Chances of Startup Success
How to Win Customer Loyalty in Less Than 10 Seconds
The New England Patriots Shout the Same 2 Words After Every Win (and Have Trademarked the Phrase)
4 Reasons Why Slowing Down Will Actually Make You More Successful
3 Things You Must Do Before You Start Your Next Project
New Year, New Data: What Your Startup's First Quarter Can Tell You About Your Business
This 1 Unconventional Habit Will Make Your 2019 More Successful and Stress-Free
Never Use a Number When Communicating (Unless You Do This)
Watch Out for Mobsourcing When Using Crowdsourcing
Creative Employees Don't Want Your Open Office Plan
Why Sometimes The Most Powerful Thing To Say Is Nothing
Are You Making the Right Enemies?
This 1 Thing Can Cut Physical Pain, Save Money and Up Your Focus
Why Paying Your Employees to Exercise Makes Great Business Sense
Why You Should Hire a CMO to to Help Build Your Personal Brand
How to Maintain Your Culture as Your Company Grows
NBA Superstar Anthony Davis Just Turned Down $48 Million a Year to Be Traded (for a Profound Reason)
How a Screaming Boss Helped Steve Blank Develop His Brilliant Startup Philosophy
Want to Be Smarter? Every Morning Ask Yourself, 'What Will I Be Wrong About Today?'
The Biggest Factor Hurting Your Company's Growth? It Could Be You
3 Ways Millennials Differ from Generation Z in 2019 Trends
Steve Jobs Said You Should Ask 1 Crucial Question Every Morning to Master Your Work Life
3 Ways Your Thinking Must Change if You Truly Want to be Happy
These 4 Key Ingredients Are What's Making Video Marketing The Next Big Trend
The No. 1 Quality Reporters Are Looking For In Their Go-To Story Sources
Monday, January 28, 2019
Apple Says It Has a Fix For the Crazy FaceTime Bug That Lets You Eavesdrop on Anyone
Got Anxiety? 7 Natural Remedies for Anxiety That Work Fast
Why Entrepreneurs Should Constantly Be Searching for New Opportunities (Even While Running a Successful Company)
13 of the Most Powerful Couples in Tech
Why Small Businesses Are Expected to Be a Hot Commodity in 2019
What the "The Green Book" Can Teach Us All about Perseverance and Entrepreneurship
5 Essential Qualities Your Next Hire Must Have
Change Your Mindset and Stop Dwelling on Past Mistakes With These 7 Tips
How To Deal With That Co-Worker Who Gets All the Attention
Why Howard Schultz's Presidential Announcement Is Already Very Unpopular
How This Company Created the First Software Development Apprenticeship Program Approved by the Department of Labor
3 Reasons Why Every Business Leader Should Join a Mastermind Group
A New Study of Over 10 Million Meetings Reveals Why They're So Darn Boring. Here's the Secret to Making Yours Stand Out.
What MoviePass CEO Mitch Lowe Learned From Being Audacious
Was Your New Year's Resolution to Start a Business? Here's 3 Small Steps You Can Take Today to Get Started
The Age of the Individual Contributor is Over. So Is Email
Facebook Announces New Measures to Improve Transparency and Accountability
Why Is Facebook Integrating Instagram, WhatsApp and Messenger?
Los Angeles Rams Head Coach, Sean McVay, Has the Assistant You Need
Why Building Mental Strength Is Different For Women
Why You Can't Find High Performers to Hire--and What You Can Do About It
A Poor Corporate Culture Can Destroy Your Brand--Here are 3 Powerful Ways to Drive Workplace Loyalty
Your Audience Doesn't Read. That's Why You Have to Do This.
How This Year's Super Bowl Will Be Powered by the Sun (Sort of)
Want the Brain of a 40 Year Old When You're 80? Science Says Start Doing These 5 Things Now
Science Says You Should Get 15 Percent Wrong When Learning. Here's Why
Australia Open Winner Naomi Osaka's Post-match Interview Is a Master Class in Grace and Humility
This Study Found 1 Simple Step to Practically Guarantee You'll Achieve Your Goals (For Real)
This Type of Employee Will Sabotage Your Team -- and Eventually You, Too
Why You're Spending Too Much Time on Your Email List
The Complicated Business of Building a Startup Scene From Scratch in Camden, New Jersey
Want to Banish Stress from Your Life Forever? Here Are 7 Powerfully Effective Ways
Unhappy in Your Job? Here Are 7 Powerfully Effective Ways to Tell Your Boss
A New Generation of Black Founders Is Rising in Atlanta--and the Startup World Is Taking Notice
8 Years Ago, a Zen Blogger Revealed a 4 Step Process for Changing Your Life. It's Even More Relevant Today
Time to Look for a New Job? These 7 Warning Signs Will Let You Know When It's Time to Go
3 Settings to Change on Your iPhone to Spend Less Time Being Distracted
Warren Buffet Says This Career Advice Is All Wrong. It's Like 'Saving Up Sex for Your Old Age. It Just Doesn't Make a Lot of Sense'
I Drove My Used Electric Nissan Leaf From Snohomish Washington to Tigard Oregon
18 Days Until the Next Shutdown (Unless This Happens First)
Sunday, January 27, 2019
5 Important Business Travel Tips You Should Stop Ignoring
3 Ways to Be a More Genuine Brand
1 Simple Way to Increase Employee Participation
These 3 Technology Inflection Points Will Change Our Future Beyond Recognition
The 2019 Entrepreneur Conferences You Should Have on Your Radar
The Surprising Trump Administration Memo At the Heart of the Shutdown's End
Tired of Facebook? 5 Great Apps to Use Instead
The Best City for Startups Isn't in the USA
Why the Blockchain Is Still Like the Nineties Internet
Saturday, January 26, 2019
How to Write Emails That Super Busy People Will Actually Read
How to Find a Mentor Without Bothering Everybody You Respect
If You Want to Change the World, You First Must Transform Your Organization
Science Shows Why You Should Leave an Unhappy Relationship, Even If You're Scared of Being Single
8 Commercials You Won't Want To Miss During Super Bowl LIII
Apple Should Hire Musk and Fire Cook
To Build Your Brand, Avoid This Questionable (and Common) Press Release Tactic
Corporate Exec-Turned-Entrepreneur Shares 3 Secrets of Success for Any-Sized Business
Read These 3 Books Before Hiring Your First Employee
How an Outsider Improved My Company's Internal Feedback Process
How to Prevent Ageism in Hiring
7 Incredibly Powerful Podcasts for Women Entrepreneurs
Here's Why Hiring for Skills Alone Can Be a Big Mistake for Your Team
These Are the 5 Biggest Myths About Big Data
Struggling to Grow Your Business? It's Okay to Quit--Just Ask Richard Branson
10 Items Business Travelers Should Always Have in Their Carry-on Bag
When Venture Capital Runs Dry, Use These 6 Techniques to Soldier On
NFL Referees Made a Huge Mistake. This Sports Betting Company Refunded Failed Bets Anyway
Businesses That Rely on Federal Employees as Customers Struggle to Keep Their Doors Open
Mark Zuckerberg Says Facebook Needs Your Information 'for Security and Operating Our Services'
Marketing to Gods: Paradoxes for Making a Next-Level Move -- Part 2
The Shutdown Could Ruin Your Travel Plans: Here Are 4 Possible Solutions
Pay Attention to the Rihanna LVMH Conversation
How to Succeed in a Turbulent Industry: 3 Top Tips from a Cannabis Entrepreneur
How to Find the Right CEO to Scale Your Company
How to Save Your Business When Disaster Strikes
Can E-Scooters Break Into New York City? It's Complicated, But Early Signs Point to Yes
Don't Get Seduced by That Amazing New Marketing Software Without Doing This First
Friday, January 25, 2019
Apple Should Hire Musk and Fire Cook
To Build Your Brand, Avoid This Questionable (and Common) Press Release Tactic
Corporate Exec-Turned-Entrepreneur Shares 3 Secrets of Success for Any-Sized Business
Read These 3 Books Before Hiring Your First Employee
How to Prevent Ageism in Hiring
How an Outsider Improved My Company's Internal Feedback Process
7 Incredibly Powerful Podcasts for Women Entrepreneurs
Here's Why Hiring for Skills Alone Can Be a Big Mistake for Your Team
These Are the 5 Biggest Myths About Big Data
When Venture Capital Runs Dry, Use These 6 Techniques to Soldier On
Businesses That Rely on Federal Employees as Customers Struggle to Keep Their Doors Open
Can E-Scooters Break Into New York City? It's Complicated, But Early Signs Point to Yes
Struggling to Grow Your Business? It's Okay to Quit--Just Ask Richard Branson
10 Items Business Travelers Should Always Have in Their Carry-on Bag
NFL Referees Made a Huge Mistake. This Sports Betting Company Refunded Failed Bets, Anyway
Mark Zuckerberg Says Facebook Needs Your Information 'For Security and Operating Our Services'
Marketing to Gods: Paradoxes for Making a Next-Level Move -- Part 2
The Shutdown Could Ruin Your Travel Plans: Here Are 4 Possible Solutions
Pay Attention to the Rihanna LVMH Conversation
From Trash Pickup to Managing Multi-Million Dollar Investors, This Cannabis CEO Redefines Entrepreneur Leaders
How to Find the Right CEO to Scale Your Company
How to Save Your Business When Disaster Strikes
Don't Get Seduced by That Amazing New Marketing Software Without Doing This First
Watch How Levi's Makes Perfectly Distressed Denim in 90 Seconds
5 Compelling Traits of Exceptional Mentors
7th Circuit Court: Age Discrimination in Hiring is Legal
What If Getting That Big Breakthrough Came Down To One Word? Good News, It Does.
New Study: Reading Fiction Really Will Make You Nicer and More Empathetic
Employers Are Overlooking the Next Big Workplace Crisis--Employee Caregiving Responsibilities
What a Life Coach Really Helps You With All Day
33 Inspirational Quotes About Life That Will Lift You Up (and Make You Laugh)
The 3 Elements of Successful Business Partnerships
Why Your Business Should Be More Environmentally Focused, According to a Recent Climate Change Report
Bill Gates Says You Should Ask 4 Crucial Questions to Assess the Quality of Your Life (1 Is From Warren Buffett)
People With High Financial Security Make Their Bed More Often and Spend Less Time on Social Media
Want More Effective Communication? Listen to the Wisdom of Mark Twain
4 Social Media Lessons Entrepreneurs Can Learn From Congresswoman Alexandria Ocasio-Cortez
Build Better Relationships on LinkedIn Using These 3 Simple Steps
Google Asked the U.S. to Reconsider Rules That Allow Employees to Organize Without Fear of Punishment
9 Services You Didn't Know You Could Deduct From Your Business Taxes
Elon Musk Reportedly 'Rage Fires' Employees, and Experts Say It's a Terrible Leadership Tactic
New Report Says a Quarter of All U.S. Jobs Will Be Disrupted by Artificial Intelligence
This 37-Year-Old Mayor Wants to Be President. Here's What He's Done for Small Businesses
Thursday, January 24, 2019
The 1 Reason Your Business Might Be Using SaaS Tools Completely Wrong (and How to Fix it)
How to Foster a More Resilient Team by Forming Habits Around Gratitude
You May Not Hear About America's State of the Union, But You Should Consider Your Own
7 Ways to Let Down Your Employee Without Losing Them
Traditional Marketing Doesn't Work on Gen-Z. Here's What Does Work
A New York Bookstore Owner Actually Closed His Business to Protest Abortion
Fighting for Social Media Followers? You're Barking Up the Wrong Tree
Adam Grant Says Understanding 1 Thing Separates Successful People From Those Who Only Dream
How One CEO Grew Her Business by 300% While Caring For A Sick Family Member
How to Reach Product-Market Fit Faster Than Ever
Mentally Strong Women Refuse to Do These 13 Things
3 Ways These CEOs Balance Their Work and Personal Lives--and You Can, Too
Barbara Corcoran's Tough-Love Advice for Raising Successful Kids
Want Loyal Customers? Treat Them Like Friends--Here's How
The Single Most Essential Rule About Pricing
Clutter Increases Your Stress and May Mean You're a Procrastinator, New Study Finds
Bird, Lime, and Other Startups Swoop Into New York City to Lobby for E-Scooter Laws
Physicists Have Discovered a Formula for Success, and It Contains a Brutal Truth Most People Don't Want to Admit
Michael Phelps Uses This Mental Trick to Prepare for Any Difficult Situation
Authors: Beware of Book Stuffing as a Path to Publication
How to Spot a Fake Glassdoor Review
Still Trying to Meditate? This $250 Headband Can Finally Teach You
How to Better Set Your Goals in 2019
Science Gives Another Reason to Love Coffee. If Your Counterpart Holds a Cup, You Make a Better Impression
I Survived A Micromanager By Understanding This 1 Thing
How the Rams' Coach Keeps His Head in the Game? This Surprising and Savvy Hire Has Everything to Do With It
How to Make a Viral Video
This Startup Thinks It Can Solve Global Inequality With...a Video Game?
What Happens to Your Business If The Shutdown Lasts Until 'March and April?' Now's the Time to Plan
Is Someone on Your Team Driving You Nuts? Here Are Your Options
The Top 10 Facebook Messenger Marketing Hacks of All Time
Wednesday, January 23, 2019
Why Your Name and Logo Matter Less Than You Think
3-D Printing Is Here to Stay. Here Are 3 Ways to Use the Technology in Your Business
Why a Developer Is Your Best SEO Hire for 2019
Winter Is Coming For Venture Capital and It Will Decimate Founders Like Elizabeth Holmes and Elon Musk
The Secret to Winning at Company Culture? There Are No Shortcuts
How This Marine Corps Veteran Turned a Passion for Medieval Combat Into a Thriving Business
Do These 3 Things to Strengthen Your Team--and Your Business
Doing Your Taxes Doesn't Have to Be a Nightmare. Here Are 5 Ways to Make It Easier
This Is How You Lead a Team That Spans 4 Generations
Create a PHP Email Script and Form
Forms on websites can be used for a lot of purposes besides being a place to contact the website administrators. In previous posts, I covered how to create a fully functional contact form in PHP and how to build your own Captcha and integrate it in your contact forms. In this tutorial, our focus will be on creating forms in PHP that are meant to serve other purposes like gathering information about a job applicant, booking hotel rooms or getting information about marriage events from clients.
Choosing the Right Fields for your Forms
In the contact form tutorial, we learned that different organizations and websites will most probably want to get specific information from people contacting them in order to assist them in the best possible way. For instance, a contact form on a school website might ask parents information about their kids enrolled in that school. Similarly, the contact form on a shopping website might gather information about the last product people bought in order to serve them better.
If contact forms can vary so much between different websites and organizations, it is reasonable to assume that forms which are supposed to serve completely different purposes have very different fields. For instance, you will most probably ask people booking a hotel room if they will be accompanied by any other adults or children. Asking the same thing of a job applicant would make no sense.
This is an important thing to remember when you follow this tutorial. The basic concept of creating a form, gathering all the information and sending it somewhere ,by email will stay the same but the code will almost certainly need changes to work for your case. You might want to add different input fields to your forms and assign different names to those fields. This will then affect the PHP code in the backend. If you make changes in the forms, make sure you update the PHP code as well.
You can take a look at this list of 20 Best PHP email forms to get some inspiration about the layout of form elements or different input fields that you might want to add to your forms.
Creating an HTML Form
In this tutorial, we will create a form to book hotel rooms as an example. For simplicity, we will also not use any additional JavaScript or PHP libraries.
With this in mind, lets write the markup of our form. We need to ask people making a reservation their name, email address and phone number. After that, we ask them to provide details about the number of children and adults that will accompany them, the check-in and check-out dates along with the types of room they prefer. In the end we will ask them if there is anything else that we show know before their arrival.
<form action="reservation.php" method="post"> <div class="elem-group"> <label for="name">Your Name</label> <input type="text" id="name" name="visitor_name" placeholder="John Doe" pattern=[A-Z\sa-z]{3,20} required> </div> <div class="elem-group"> <label for="email">Your E-mail</label> <input type="email" id="email" name="visitor_email" placeholder="john.doe@email.com" required> </div> <div class="elem-group"> <label for="phone">Your Phone</label> <input type="tel" id="phone" name="visitor_phone" placeholder="498-348-3872" pattern=(\d{3})-?\s?(\d{3})-?\s?(\d{4}) required> </div> <hr> <div class="elem-group inlined"> <label for="adult">Adults</label> <input type="number" id="adult" name="total_adults" placeholder="2" min="1" required> </div> <div class="elem-group inlined"> <label for="child">Children</label> <input type="number" id="child" name="total_children" placeholder="2" min="0" required> </div> <div class="elem-group inlined"> <label for="checkin-date">Check-in Date</label> <input type="date" id="checkin-date" name="checkin" required> </div> <div class="elem-group inlined"> <label for="checkout-date">Check-out Date</label> <input type="date" id="checkout-date" name="checkout" required> </div> <div class="elem-group"> <label for="room-selection">Select Room Preference</label> <select id="room-selection" name="room_preference" required> <option value="">Choose a Room from the List</option> <option value="connecting">Connecting</option> <option value="adjoining">Adjoining</option> <option value="adjacent">Adjacent</option> </select> </div> <hr> <div class="elem-group"> <label for="message">Anything Else?</label> <textarea id="message" name="visitor_message" placeholder="Tell us anything else that might be important." required></textarea> </div> <button type="submit">Book The Rooms</button> </form>
We have used two basic patterns to check if the provided name and phone numbers are valid. Phone numbers follow different formats depending on the locale. This means that you will have to update the value of pattern attribute accordingly.
We have also set the minimum value of adults and children to 1 and 0 respectively. This way we can prevent people from mistakenly adding negative values.
You can add more elements to this form for other services that the hotel provides like pickup, room service etc.
Right now, visitors can set both the check in and check out dates to a past value. We can avoid that by simply setting the value of min
attribute on both the check in and check out dates. In our case, we will set the minimum possible check in date to be the current day. The value of min
attribute of the check out date will be the check in date.
The JavaScript code below will handle all the logic for us. The months are zero-based so we add 1 to the returned value to get the actual month. The returned date value can be any integer from 1 to 31 depending on the current time.
When the date and month values are in single digits, they are padded with an extra 0 so that the final string stays in a valid format.
var currentDateTime = new Date(); var year = currentDateTime.getFullYear(); var month = (currentDateTime.getMonth() + 1); var date = currentDateTime.getDate(); if(date < 10) { date = '0' + date; } if(month < 10) { month = '0' + month; } var dateTomorrow = year + "-" + month + "-" + date; var checkinElem = document.querySelector("#checkin-date"); var checkoutElem = document.querySelector("#checkout-date"); checkinElem.setAttribute("min", dateTomorrow); checkinElem.onchange = function () { checkoutElem.setAttribute("min", this.value); }
The following CodePen demo shows the us how the form behaves after adding the above markup and JavaScript functionality.
Sending the Form Data by Email with PHP
The final step involves collecting all the data from our form and sending it to concerned people in an email. This is actually very easy to do. First we gather all the information using $_POST
variables. Once we have the required information we sanitize it to remove anything malicious. Finally, we create the body of our HTML email and then send it using the mail() function in PHP.
The following code will go into a file called reservation.php. The file name will be different if you changed the value of action
attribute of the from in previous section.
<?php if($_POST) { $visitor_name = ""; $visitor_email = ""; $visitor_phone = ""; $total_adults = ""; $total_children = ""; $checkin_date = ""; $checkout_date = ""; $room_type = ""; $visitor_message = ""; if(isset($_POST['visitor_name'])) { $visitor_name = filter_var($_POST['visitor_name'], FILTER_SANITIZE_STRING); } if(isset($_POST['visitor_email'])) { $visitor_email = str_replace(array("\r", "\n", "%0a", "%0d"), '', $_POST['visitor_email']); $visitor_email = filter_var($visitor_email, FILTER_VALIDATE_EMAIL); } if(isset($_POST['visitor_phone'])) { $visitor_phone = filter_var($_POST['visitor_phone'], FILTER_SANITIZE_NUMBER_INT); } if(isset($_POST['total_adults'])) { $total_adults = filter_var($_POST['total_adults'], FILTER_SANITIZE_NUMBER_INT); } if(isset($_POST['total_children'])) { $total_children = filter_var($_POST['total_children'], FILTER_SANITIZE_NUMBER_INT); } if(isset($_POST['checkin'])) { $checkin_date = filter_var($_POST['checkin'], FILTER_SANITIZE_NUMBER_INT); } if(isset($_POST['checkout'])) { $checkout_date = filter_var($_POST['checkout'], FILTER_SANITIZE_NUMBER_INT); } if(isset($_POST['room_preference'])) { $room_type = filter_var($_POST['room_preference'], FILTER_SANITIZE_STRING); } if(isset($_POST['visitor_message'])) { $visitor_message = htmlspecialchars($_POST['visitor_message']); } $recipient = "booking@demo.com"; $headers = 'MIME-Version: 1.0' . "\r\n" .'Content-type: text/html; charset=utf-8' . "\r\n" .'From: ' . $visitor_email . "\r\n"; $email_content = "<html><body>"; $email_content .= "<table style='font-family: Arial;'><tbody><tr><td style='background: #eee; padding: 10px;'>Visitor Name</td><td style='background: #fda; padding: 10px;'>$visitor_name</td></tr>"; $email_content .= "<tr><td style='background: #eee; padding: 10px;'>Visitor Email</td><td style='background: #fda; padding: 10px;'>$visitor_email</td></tr>"; $email_content .= "<tr><td style='background: #eee; padding: 10px;'>Visitor Phone</td><td style='background: #fda; padding: 10px;'>$visitor_phone</td></tr>"; $email_content .= "<tr><td style='background: #eee; padding: 10px;'>Total Adults</td><td style='background: #fda; padding: 10px;'>$total_adults</td></tr>"; $email_content .= "<tr><td style='background: #eee; padding: 10px;'>Total Children</td><td style='background: #fda; padding: 10px;'>$total_children</td></tr>"; $email_content .= "<tr><td style='background: #eee; padding: 10px;'>Check-in Date</td><td style='background: #fda; padding: 10px;'>$checkin_date</td></tr>"; $email_content .= "<tr><td style='background: #eee; padding: 10px;'>Check-out Date</td><td style='background: #fda; padding: 10px;'>$checkout_date</td></tr>"; $email_content .= "<tr><td style='background: #eee; padding: 10px;'>Room Type</td><td style='background: #fda; padding: 10px;'>$room_type</td></tr></tbody></table>"; $email_content .= "<p style='font-family: Arial; font-size: 1.25rem;'><strong>Special Request from $visitor_name —</strong><i> $visitor_message</i>.</p>"; $email_content .= '</body></html>'; echo $email_content; if(mail($recipient, "Hotel Room Reservation Confirmation", $email_content, $headers)) { echo '<p>Thank you for booking a hotel room with us. We hope you have a pleasant stay.</p>'; } else { echo '<p>We are sorry but the booking confirmation email did not go through.</p>'; } } else { echo '<p>Something went wrong</p>'; } ?>
We begin by sanitizing the name and email address of the visitor. After that we sanitize the check-in date, check-out date, number of adults and number of children using the FILTER_SANITIZE_NUMBER_INT
flag. This flag removes all characters from the input except digits and +
or -
signs. It works out great for sanitizing our dates because we expect them in the format YYYY-MM-DD—just digits and the minus sign. You should go through the PHP documentation to learn about all the sanitization and validation flags.
Once we have sanitized all the input, we start preparing our headers. By including Content-type: text/html
in the email headers, we will be able to use HTML tags inside our email. For this tutorial, we are keeping it simple and showing all the user data inside a table. Any special message left by people booking a hotel rooms is shown below the table.
Final Thoughts
In this tutorial, we have covered the basics of creating a PHP email script that sends data from forms filled out by people. When creating forms, it is important to lay the elements out properly and make sure that you only ask for information that is actually required. Creating an unnecessarily long form with improperly laid out elements will discourage users from filling out the form. You should also make sure that every element is named properly. Proper sanitization of user input is important as well.
If you have never created your own forms and are unfamiliar with PHP, it might be better to consider using scripts created by professionals. We have created this list of 20 Best PHP Email forms to help you get started. These form come with extra features like Captcha, scheduling emails and file uploads.
If you have any questions related to this tutorial, please let me know in the comments.
Entrepreneurs Have to Learn to Live by the Numbers--Their Businesses Depend on It
Embrace Your Inner Bezos: 3 Radically Different Ways to Tackle Entrepreneurship in 2019
Gillette's Latest Ad Mentions Nothing About Shaving. Here's Why It's Working.
$400 Million Salary-Suppression Lawsuit Against Oracle Is Going to Court
McDonald's Just Revealed a Free Bacon Happy Hour That Is Absolutely Brilliant (Why Didn't Wendy's or Burger King Think of It First?)
How New Cybersecurity Laws Can Help Protect Your Business
5 Things to Consider When Launching an Influencer Campaign
20 Conferences You Can't Miss in 2019
Worst Success Advice Ever. If You're Following These; Beware
NASCAR Driver Brad Keselowski's New Startup: Engineering the Next Generation of High-Tech Manufacturing
The Fierce Rivalry to Become North Carolina's Best City for Startups
Actually, Screen Time Isn't Harming Kids Much at All, Rigorous New Oxford Study Finds
This Is What Caused Millennials to Be so Different
How to Explain the Game to Inspire Winning
Elon Musk Sent an Email to Employees at 1:20 in the Morning, and It Just May Signal the End of Tesla
Mariano Rivera Just Became a Unanimous Hall of Famer--and His Remarkable EQ Played a Huge Role
Elon Musk Just Misused Purpose to Dismiss Thousands of Workers (and Work-Life Balance)
5 Ways to Do More Social Good in 2019 Through Your Business
11 Books to Become a Smarter, Stronger Version of Yourself
How Can You Spot a Great Leader When You See One? Look for 5 Uncommon Traits Employees Will Love
Spotting a Phishing Email Is Harder Than You Think. Take This Google Quiz to Find Out How
How to Stuff the Ballot Box on Glassdoor
Glassdoor Just Announced the 50 Best Jobs in America for 2019 (Is Your Job on the List?)
Tuesday, January 22, 2019
7 Ways to Prevent Credit Card Theft During Business Travels
The Best Leaders Use This Strategy to Stay at the Top of Their Game
To Become an In-Demand Speaker, Start by Hosting Your Own Events. Here is Why
There's an IPO Loophole During the Shutdown--and You Absolutely Shouldn't Use It
How to Train Employees When You Can't Remember What It's Like to Be New
How to Be an Effective CEO Without Getting Distracted By Day-to-Day Details
A French Data Protection Watchdog Is Fining Google $57 Million Under a New EU Law
How to KonMari Your Work Life
Why 'Staying Out of Politics' Could Be Bad for Your Brand
Magician Criss Angel Explains the Real Purpose and Meaning Behind His Success
7 Ways to Boost Your Team's Morale During the Cold Months of Winter
How to Maximize Revenue Outside of Sales Seasons
At Davos, Economists and Investors Offer a Chilling Warning About Global Growth
Why All New Businesses Must Have a Unique Selling Point for Customers and Investors
The Apple Secret or the Secret Apple? Will Privacy as Marketing Plan Survive?
Can privacy stick?