Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

HTML

I Tried To Send A Form On Website That I Just Completed

http://maggiewincher.com/

This Is The Message Page That Came Up After I Pressed The Send Button, Does Anyone Know How To Fix This??? Or Send A Form That Actually Works???

403 - Forbidden: Access is denied. You do not have permission to view this directory or page using the credentials that you supplied.

11 Answers

if you want to send an email using a form, you are going to have to have a server and write some server side code (PHP usually) to do it using something like PHPMailer. You cannot do it with just HTML and CSS. The best you could do with HTML and CSS would be to open up the users default mail app using a mailto link. Id recommend checking out the PHP Courses

What exactly is the form supposed to do? Have you written any server side code to handle the submission?

It Is A Prayer Request Form, The Person Fills It Out And It Is Sent To An Email Address.

No I Have Not Written Any Server Side Code, Because I Have Not Gotten That Far.

 <form action="https://bay182.mail.live.com/default.aspx?id=64855&mkt=en-US&rru=inbox" method="POST" name="Prayer Request Form">


</form>  

This Is The Website That I Created, It Has 3 Forms. A Prayer Request Form, A Music Ministry Request Form And A Praise Report Form.

http://maggiewincher.com/

alright and do any of those forms function correctly right now?

Yes They Do, Here Is The Prayer Request Form

<!DOCTYPE HTML>
<html lang="en">
  <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> 
     <title>Prayer Request Form</title>

 </head>

<body>

  <div class="container clearfix">
   <form action="https://bay182.mail.live.com/default.aspx?id=64855&mkt=en-US&rru=inbox" method="POST" name="Music Ministry Request Form">  


    <p id="Prayer Request Form.html"></p><br>


         <p>Please fill out the form below:</p>

          <p>* Denotes Required Fields</p>
    <fieldset>
      <legend align="center"><h2>Prayer Request Form</h2></legend>


          <label for="First Name *">First Name *</label><br>
          <input type="text" name="First Name *" id="First Name *"><br>
          <br>
          <label for="Last Name *">Last Name *</label><br>
          <input type="text" name="Last Name *" id="Last Name *"><br>
          <br>
          <label for="Address Line 1 *">Address Line 1 *</label><br>
          <input type="text" name="Address Line 1 *" id="Address Line 1 *"><br>
          <br>
          <label for="Address Line 2">Address Line 2</label><br>
          <input type="text" name="Address Line 2" id="Address Line 2"><br>
          <br>
          <label for="City *">City *</label><br>
          <input type="text" name="City *" id="City *"><br>
          <br>
          <label for="State *">State *</label><br>
          <input type="text" name="State *" id="State *"><br>
          <br>
          <label for="Postal Code *">Postal Code *</label><br>
          <input type="text" name="Postal Code *" id="Postal Code *"><br>
          <br>
          <select>
            <option>United States</option><br>
            <option>Afghanistan</option><br>
            <option>Albania</option><br>
            <option>Algeria</option><br>
            <option>Andorra</option><br>
            <option>Angola</option><br>
            <option>Antigua and Barbuda</option><br>
            <option>Argentina</option><br>
            <option>Aruba</option><br>
            <option>Australia</option><br>
            <option>Austria</option><br>
            <option>Azerbaijan</option><br>
            <option>Bahamas, The</option><br>
            <option>Bahrain</option><br>
            <option>Bangladesh</option><br>
            <option>Barbados</option><br>
            <option>Belarus</option><br>
            <option>Belgium</option><br>
            <option>Belize</option><br>
            <option>Benin</option><br>
            <option>Bhutan</option><br>
            <option>Bolivia</option><br>
            <option>Bosnia and Herzegovina</option><br>
            <option>Botswana</option><br>
            <option>Brazil</option><br>
            <option>Brunei </option><br>
            <option>Bulgaria</option><br>
            <option>Burkina Faso</option><br>
            <option>Burma</option><br>
            <option>Burundi</option><br>
            <option>Cambodia</option><br>
            <option>Cameroon</option><br>
            <option>Canada</option><br>
            <option>Cape Verde</option><br>
            <option>Chad</option><br>
            <option>Chile</option><br>
            <option>China</option><br>
            <option>Colombia</option><br>
            <option>Comoros</option><br>
            <option>Congo, Democratic Republic of the</option><br>
            <option>Costa Rica</option><br>
            <option>Cote d'Ivoire</option><br>
            <option>Croatia</option><br>
            <option>Cuba</option><br>
            <option>Curacao</option><br>
            <option>Cyprus</option><br>
            <option>Czech Republic</option><br>
            <option>Denmark</option><br>
            <option>Djibouti</option><br>
            <option>Dominica</option><br>
            <option>Dominican Republic</option><br>
            <option>East Timor (see Timor-Leste)</option><br>
            <option>Ecuador</option><br>
            <option>Egypt</option><br>
            <option>El Salvador</option><br>
            <option>Equatorial Guinea</option><br>
            <option>Eritrea</option><br>
            <option>Eritrea</option><br>
            <option>Estonia</option><br>
            <option>Ethiopia</option><br>
            <option>Fiji</option><br>
            <option>Finland</option><br>
            <option>France</option><br>
            <option>Gabon</option><br>
            <option>Gambia, The</option><br>
            <option>Georgia</option><br>
            <option>Germany</option><br>
            <option>Ghana</option><br>
            <option>Greece</option><br>
            <option>Grenada</option><br>
            <option>Guatemala</option><br>
            <option>Guinea</option><br>
            <option>Guinea-Bissau</option><br>
            <option>Guyana</option><br>
            <option>Haiti</option><br>
            <option>Holy See</option><br>
            <option>Honduras</option><br>
            <option>Hong Kong</option><br>
            <option>Hungary</option><br>
            <option>Iceland</option><br>
            <option>India</option><br>
            <option>Indonesia</option><br>
            <option>Iran</option><br>
            <option>Iraq</option><br>
            <option>Ireland</option><br>
            <option>Israel</option><br>
            <option>Italy</option><br>
            <option>Jamaica</option><br>
            <option>Japan</option><br>
            <option>Jordan</option><br>
            <option>Kazakhstan</option><br>
            <option>Kenya</option><br>
            <option>Kiribati</option><br>
            <option>Korea, North</option><br>
            <option>Korea, South</option><br>
            <option>Kosovo</option><br>
            <option>Kuwait</option><br>
            <option>Kyrgyzstan</option><br>
            <option>Laos</option><br>
            <option>Latvia</option><br>
            <option>Lebanon</option><br>
            <option>Lesotho</option><br>
            <option>Liberia</option><br>
            <option>Libya</option><br>
            <option>Liechtenstein</option><br>
            <option>Lithuania</option><br>
            <option>Luxembourg</option><br>
            <option>Macau</option><br>
            <option>Macedonia</option><br>
            <option>Madagascar</option><br>
            <option>Malawi</option><br>
            <option>Malaysia</option><br>
            <option>Maldives</option><br>
            <option>Mali</option><br>
            <option>Malta</option><br>
            <option>Marshall Islands</option><br>
            <option>Mauritania</option><br>
            <option>Mauritius</option><br>
            <option>Mexico</option><br>
            <option>Micronesia</option><br>
            <option>Moldova</option><br>
            <option>Monaco</option><br>
            <option>Mongolia</option><br>
            <option>Montenegro</option><br>
            <option>Morocco</option><br>
            <option>Mozambique</option><br>
            <option>Namibia</option><br>
            <option>Nauru</option><br>
            <option>Nepal</option><br>
            <option>Netherlands</option><br>
            <option>Netherlands Antilles</option><br>
            <option>New Zealand</option><br>
            <option>Nicaragua</option><br>
            <option>Niger</option><br>
            <option>Nigeria</option><br>
            <option>North Korea</option><br>
            <option>Norway</option><br>
            <option>Oman</option><br>
            <option>Pakistan</option><br>
            <option>Palau</option><br>
            <option>Palestinian Territories</option><br>
            <option>Panama</option><br>
            <option>Papua New Guinea</option><br>
            <option>Paraguay</option><br>
            <option>Peru</option><br>
            <option>Philippines</option><br>
            <option>Poland</option><br>
            <option>Portugal</option><br>
            <option>Qatar</option><br>
            <option>Romania</option><br>
            <option>Russia</option><br>
            <option>Rwanda</option><br>
            <option>Saint Kitts and Nevis</option><br>
            <option>Saint Lucia</option><br>
            <option>Saint Vincent and the Grenadines</option><br>
            <option>Samoa</option><br>
            <option>San Marino</option><br>
            <option>Sao Tome and Principe</option><br>
            <option>Saudi Arabia</option><br>
            <option>Senegal</option><br>
            <option>Serbia</option><br>
            <option>Seychelles</option><br>
            <option>Sierra Leone</option><br>
            <option>Singapore</option><br>
            <option>Sint Maarten</option><br>
            <option>Slovakia</option><br>
            <option>Slovenia</option><br>
            <option>Solomon Islands</option><br>
            <option>Somalia</option><br>
            <option>South Africa</option><br>
            <option>South Sudan</option><br>
            <option>Spain</option><br>
            <option>Sri Lanka</option><br>
            <option>Sudan</option><br>
            <option>Suriname</option><br>
            <option>Swaziland</option><br>
            <option>Sweden</option><br>
            <option>Switzerland</option><br>
            <option>Syria</option><br>
            <option>Taiwan</option><br>
            <option>Tajikistan</option><br>
            <option>Tanzania</option><br>
            <option>Thailand</option><br>
            <option>Timor-Leste</option><br>
            <option>Togo</option><br>
            <option>Trinidad and Tobago</option><br>
            <option>Tunisia</option><br>
            <option>Turkey</option><br>
            <option>Turkmenistan</option><br>
            <option>Tuvalu</option><br>
            <option>Uganda</option><br>
            <option>Ukraine</option><br>
            <option>United Arab Emirates</option><br>
            <option>United Kingdom</option><br>
            <option>Uruguay</option><br>
            <option>Uzbekistan</option><br>
            <option>Vanuatu</option><br>
            <option>Venezuela</option><br>
            <option>Vietnam</option><br>
            <option>Yemen</option><br>
            <option>Zambia</option><br>
            <option>Zimbabwe</option><br>
         </select><br>
         <br>        
          <label for="Phone *">Phone *</label><br>
          <input type="text" name="Phone *" id="Phone *"><br>
          <br>
          <label for="Fax">Fax</label><br>
          <input type="text" name="Fax" id="Fax"><br>
          <br>
          <label for="Email *">Email *</label><br>
          <input type="text" name="Email *" id="Email *"><br>
          <br>
          <label for="Your Title">Your Title</label><br>
          <input type="text" name="Your Title" id="Your Title"><br>
          <br>
          <label for="Praise Report">Prayer Request</label><br>
          <textarea name="Praise Report" rows="3" cols="30"></textarea><br>

  </fieldset>
          <br>
       <input type="submit" value="Send"><br>

          <br> 
          <br>
          <br>     

        <a href="index.html" class="btn"><em>Home</a></em><br>
         <br>
          <br>
  </div>
</body>
</html>

Yes They Do, Here Is The Prayer Request Form

<!DOCTYPE HTML>
<html lang="en">
  <head>
     <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
     <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no"> 
     <title>Prayer Request Form</title>

 </head>

<body>

  <div class="container clearfix">
   <form action="https://bay182.mail.live.com/default.aspx?id=64855&mkt=en-US&rru=inbox" method="POST" name="Music Ministry Request Form">  


    <p id="Prayer Request Form.html"></p><br>


         <p>Please fill out the form below:</p>

          <p>* Denotes Required Fields</p>
    <fieldset>
      <legend align="center"><h2>Prayer Request Form</h2></legend>


          <label for="First Name *">First Name *</label><br>
          <input type="text" name="First Name *" id="First Name *"><br>
          <br>
          <label for="Last Name *">Last Name *</label><br>
          <input type="text" name="Last Name *" id="Last Name *"><br>
          <br>
          <label for="Address Line 1 *">Address Line 1 *</label><br>
          <input type="text" name="Address Line 1 *" id="Address Line 1 *"><br>
          <br>
          <label for="Address Line 2">Address Line 2</label><br>
          <input type="text" name="Address Line 2" id="Address Line 2"><br>
          <br>
          <label for="City *">City *</label><br>
          <input type="text" name="City *" id="City *"><br>
          <br>
          <label for="State *">State *</label><br>
          <input type="text" name="State *" id="State *"><br>
          <br>
          <label for="Postal Code *">Postal Code *</label><br>
          <input type="text" name="Postal Code *" id="Postal Code *"><br>
          <br>
          <select>
            <option>United States</option><br>
            <option>Afghanistan</option><br>
            <option>Albania</option><br>
            <option>Algeria</option><br>
            <option>Andorra</option><br>
            <option>Angola</option><br>
            <option>Antigua and Barbuda</option><br>
            <option>Argentina</option><br>
            <option>Aruba</option><br>
            <option>Australia</option><br>
            <option>Austria</option><br>
            <option>Azerbaijan</option><br>
            <option>Bahamas, The</option><br>
            <option>Bahrain</option><br>
            <option>Bangladesh</option><br>
            <option>Barbados</option><br>
            <option>Belarus</option><br>
            <option>Belgium</option><br>
            <option>Belize</option><br>
            <option>Benin</option><br>
            <option>Bhutan</option><br>
            <option>Bolivia</option><br>
            <option>Bosnia and Herzegovina</option><br>
            <option>Botswana</option><br>
            <option>Brazil</option><br>
            <option>Brunei </option><br>
            <option>Bulgaria</option><br>
            <option>Burkina Faso</option><br>
            <option>Burma</option><br>
            <option>Burundi</option><br>
            <option>Cambodia</option><br>
            <option>Cameroon</option><br>
            <option>Canada</option><br>
            <option>Cape Verde</option><br>
            <option>Chad</option><br>
            <option>Chile</option><br>
            <option>China</option><br>
            <option>Colombia</option><br>
            <option>Comoros</option><br>
            <option>Congo, Democratic Republic of the</option><br>
            <option>Costa Rica</option><br>
            <option>Cote d'Ivoire</option><br>
            <option>Croatia</option><br>
            <option>Cuba</option><br>
            <option>Curacao</option><br>
            <option>Cyprus</option><br>
            <option>Czech Republic</option><br>
            <option>Denmark</option><br>
            <option>Djibouti</option><br>
            <option>Dominica</option><br>
            <option>Dominican Republic</option><br>
            <option>East Timor (see Timor-Leste)</option><br>
            <option>Ecuador</option><br>
            <option>Egypt</option><br>
            <option>El Salvador</option><br>
            <option>Equatorial Guinea</option><br>
            <option>Eritrea</option><br>
            <option>Eritrea</option><br>
            <option>Estonia</option><br>
            <option>Ethiopia</option><br>
            <option>Fiji</option><br>
            <option>Finland</option><br>
            <option>France</option><br>
            <option>Gabon</option><br>
            <option>Gambia, The</option><br>
            <option>Georgia</option><br>
            <option>Germany</option><br>
            <option>Ghana</option><br>
            <option>Greece</option><br>
            <option>Grenada</option><br>
            <option>Guatemala</option><br>
            <option>Guinea</option><br>
            <option>Guinea-Bissau</option><br>
            <option>Guyana</option><br>
            <option>Haiti</option><br>
            <option>Holy See</option><br>
            <option>Honduras</option><br>
            <option>Hong Kong</option><br>
            <option>Hungary</option><br>
            <option>Iceland</option><br>
            <option>India</option><br>
            <option>Indonesia</option><br>
            <option>Iran</option><br>
            <option>Iraq</option><br>
            <option>Ireland</option><br>
            <option>Israel</option><br>
            <option>Italy</option><br>
            <option>Jamaica</option><br>
            <option>Japan</option><br>
            <option>Jordan</option><br>
            <option>Kazakhstan</option><br>
            <option>Kenya</option><br>
            <option>Kiribati</option><br>
            <option>Korea, North</option><br>
            <option>Korea, South</option><br>
            <option>Kosovo</option><br>
            <option>Kuwait</option><br>
            <option>Kyrgyzstan</option><br>
            <option>Laos</option><br>
            <option>Latvia</option><br>
            <option>Lebanon</option><br>
            <option>Lesotho</option><br>
            <option>Liberia</option><br>
            <option>Libya</option><br>
            <option>Liechtenstein</option><br>
            <option>Lithuania</option><br>
            <option>Luxembourg</option><br>
            <option>Macau</option><br>
            <option>Macedonia</option><br>
            <option>Madagascar</option><br>
            <option>Malawi</option><br>
            <option>Malaysia</option><br>
            <option>Maldives</option><br>
            <option>Mali</option><br>
            <option>Malta</option><br>
            <option>Marshall Islands</option><br>
            <option>Mauritania</option><br>
            <option>Mauritius</option><br>
            <option>Mexico</option><br>
            <option>Micronesia</option><br>
            <option>Moldova</option><br>
            <option>Monaco</option><br>
            <option>Mongolia</option><br>
            <option>Montenegro</option><br>
            <option>Morocco</option><br>
            <option>Mozambique</option><br>
            <option>Namibia</option><br>
            <option>Nauru</option><br>
            <option>Nepal</option><br>
            <option>Netherlands</option><br>
            <option>Netherlands Antilles</option><br>
            <option>New Zealand</option><br>
            <option>Nicaragua</option><br>
            <option>Niger</option><br>
            <option>Nigeria</option><br>
            <option>North Korea</option><br>
            <option>Norway</option><br>
            <option>Oman</option><br>
            <option>Pakistan</option><br>
            <option>Palau</option><br>
            <option>Palestinian Territories</option><br>
            <option>Panama</option><br>
            <option>Papua New Guinea</option><br>
            <option>Paraguay</option><br>
            <option>Peru</option><br>
            <option>Philippines</option><br>
            <option>Poland</option><br>
            <option>Portugal</option><br>
            <option>Qatar</option><br>
            <option>Romania</option><br>
            <option>Russia</option><br>
            <option>Rwanda</option><br>
            <option>Saint Kitts and Nevis</option><br>
            <option>Saint Lucia</option><br>
            <option>Saint Vincent and the Grenadines</option><br>
            <option>Samoa</option><br>
            <option>San Marino</option><br>
            <option>Sao Tome and Principe</option><br>
            <option>Saudi Arabia</option><br>
            <option>Senegal</option><br>
            <option>Serbia</option><br>
            <option>Seychelles</option><br>
            <option>Sierra Leone</option><br>
            <option>Singapore</option><br>
            <option>Sint Maarten</option><br>
            <option>Slovakia</option><br>
            <option>Slovenia</option><br>
            <option>Solomon Islands</option><br>
            <option>Somalia</option><br>
            <option>South Africa</option><br>
            <option>South Sudan</option><br>
            <option>Spain</option><br>
            <option>Sri Lanka</option><br>
            <option>Sudan</option><br>
            <option>Suriname</option><br>
            <option>Swaziland</option><br>
            <option>Sweden</option><br>
            <option>Switzerland</option><br>
            <option>Syria</option><br>
            <option>Taiwan</option><br>
            <option>Tajikistan</option><br>
            <option>Tanzania</option><br>
            <option>Thailand</option><br>
            <option>Timor-Leste</option><br>
            <option>Togo</option><br>
            <option>Trinidad and Tobago</option><br>
            <option>Tunisia</option><br>
            <option>Turkey</option><br>
            <option>Turkmenistan</option><br>
            <option>Tuvalu</option><br>
            <option>Uganda</option><br>
            <option>Ukraine</option><br>
            <option>United Arab Emirates</option><br>
            <option>United Kingdom</option><br>
            <option>Uruguay</option><br>
            <option>Uzbekistan</option><br>
            <option>Vanuatu</option><br>
            <option>Venezuela</option><br>
            <option>Vietnam</option><br>
            <option>Yemen</option><br>
            <option>Zambia</option><br>
            <option>Zimbabwe</option><br>
         </select><br>
         <br>        
          <label for="Phone *">Phone *</label><br>
          <input type="text" name="Phone *" id="Phone *"><br>
          <br>
          <label for="Fax">Fax</label><br>
          <input type="text" name="Fax" id="Fax"><br>
          <br>
          <label for="Email *">Email *</label><br>
          <input type="text" name="Email *" id="Email *"><br>
          <br>
          <label for="Your Title">Your Title</label><br>
          <input type="text" name="Your Title" id="Your Title"><br>
          <br>
          <label for="Praise Report">Prayer Request</label><br>
          <textarea name="Praise Report" rows="3" cols="30"></textarea><br>

  </fieldset>
          <br>
       <input type="submit" value="Send"><br>

          <br> 
          <br>
          <br>     

        <a href="index.html" class="btn"><em>Home</a></em><br>
         <br>
          <br>
  </div>
</body>
</html>

Everything On The Site Works But The Send Button In The Forms.

Jeff Busch That Is My Email Address To Hotmail, That Is My https://

Hi Crystal,

I think that you're trying to submit your form data to your hotmail address and it's not going to work like that. I recommend that you take the advice Stone Preston gave and look at the php courses. "build a simple php application" will cover what's involved in sending an email.

I wanted to point out a few problems in your html so that they don't cause you problems later on.

You have spaces in your id attribute values which are not allowed.

You also have spaces in your name attribute values. Spaces are allowed here but once you get to working on the php part of this you'll find that php will convert those spaces to underscores and so you will have to access them in your script with the underscores.

If I Had 100 Years To Complete A PHP Course I Would NOT Be Asking How Finish The Last Portion Of This Website Would I ???

Sending an email using form data is not as simple as adding one line of code to your form to make it work. You are going to have to work with some server side code. Sorry if thats not what you want to hear, but you are going to have to either invest a bit more time to get an understanding of PHP and how form submissions etc work or hire a developer to implement that functionality for you. Your site looks very good and learning some server side code is the logical next step in your development journey.