Help with PhP

Discussion in 'Review My Site' started by randjimx, Jan 27, 2017.

  1. randjimx

    randjimx New Member

    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    Last edited: Jan 27, 2017
  2. essellar

    essellar Community Advocate Community Support

    Messages:
    3,295
    Likes Received:
    227
    Trophy Points:
    63
    Can't do that without seeing your code. We don't need the entire page; just the part that does (apparently) the e-mail.
     
  3. randjimx

    randjimx New Member

    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    <!DOCTYPE html>
    <html>
    <!--BoonevilleAnimalShelter.com-->
    <!--Designer; Randall Bliss-->
    <!--email; rbliss@atu.edu-->


    <head>

    <style>.center{text-align:center;}</style>
    <title>Booneville Animal Shelter</title>
    <link rel="shortcut icon" href="../logo's/logo.png" />
    <link rel="stylesheet" type="text/css" href="../style/style.css">

    </head>

    <body id="body"><!--header perameters-->
    <div id="header">

    <div><img align="left" src="../logo's/logo.png" width= 100px height= 100px></div>

    <div><img align="right" src="../logo's/logo.png" width= 100px height= 100px></div>

    <ul>
    <h1>Booneville Animal Shelter</h1><br>
    <h2>Reserve-a-Pet</h2>
    </ul>

    <div id="bar" ><!--nests links within header object-->
    <ul><br><br><br>
    <li><a href="./../index.html">Home</a></li>
    <li><a href="./../sweetie/sweetie.html">Sweetie</a></li>
    <li><a href="./../Adoptables/Adoptables.html">Adoptables</a></li>
    <li><a href="./../reserve/reserve.php">Reserve_A_Pet</a></li>
    <li><a href="./../lostNfound/lostNfound.php">Lost_N_Found</li></a>
    <li><a href="./../about/about.html">About</li></a>
    </ul>
    </ul>
    </div>
    </div>

    <div id="content">
    <ul>
    <h3 class="center">Adopt a new Family Member from us!</h3>
    <h4 class="center">Help Prevent animals from becoming homeless!</h4>
    <h4 class="center">Please have your pets spayed or neutered!</h4>

    <form action="MAILTO:randallbliss@hotmail.com" method="post" enctype="text/plain"><br>
    <fieldset><legend>Reserve a pet:</legend>
    Please enter your name and email address or phone number in the appropriate boxes and
    the name or description of the pet you saw on our Facebook page or one this sight
    and when you are planning to come adopt him/her in the, comments box below,
    so we can try to reserve the pet for you.<br>
    *NOTE; This is not a guarantee that the pet will be held for you, but we will try.
    Please claim him/her as soon as possible.<br><br>
    Name:<input type="text" name="name" value="your name"></input><br><br>
    E-mail:<input type="text" name="mail" value="your email or phone#"></input><br><br>
    Comments:<br><textarea type="text" name="comment" value="your comment" rows="10" cols="50"></textarea><br><br>
    <input type='hidden' name='sendtoemail' value='https://www.facebook.com/BoonevilleAnimalShelter'></input>
    <input type='submit' value='Send'></input>
    <input type="reset" value="Reset"></input><br><br>
    <h4 class="center">Click the "Send" button on the form, and a message will be sent to us.</h4>
    </fieldset>
    </form>

    <h3 class="center"><a href="https://www.facebook.com/BoonevilleAnimalShelter">
    <img align="center" align="top" src="../logo's/FB-f-Logo__blue_100.png" width= 50px height= 50px></a></h3>
    <h4 class="center">Be sure to check our facebook page for more!</h4>
    </div>
    <div id="foot")<!--footer object-->
    <div><a href="./../Adoptables/Adoptables.html"><img align="left" src="./../indexPics/LeftArrow.png" style="margin-top:30px;" width= 40pxpx height= 40px></a></div>
    <div><a href="./../lostNfound/lostNfound.php"><img align="right" src="./../indexPics/RightArrow.png" style="margin-top:30px;" width= 40px height= 40px></a></div>
    <ul>
    <h4>Visit our friends at:</h4>
    </ul>
    <ul>
    <li><a href="http://www.aspca.org/" target="_blank">ASPCA</a></li>
    <li><a href="http://www.humanesociety.org/" target="_blank">Humane Society</a></li>
    <li><a href="http://prime.peta.org/" target="_blank">PETA</li></a>
    <li><a href="http://www.animalhealthfoundation.net/index.html" target="_blank">Animal Health Foundation</li></a>
    </ul>
    <ul>
    <li><a href="../contact/contact.html">Contact</li></a>
    <li><a href="./reserve.php">GO TO TOP</li></a>
    </ul>
    </div>

    </body>
    </html>
     
  4. essellar

    essellar Community Advocate Community Support

    Messages:
    3,295
    Likes Received:
    227
    Trophy Points:
    63
    That's... not actually PHP. I mean, sure, it's valid to put all of that on a PHP page, but it doesn't actually use PHP anywhere, just HTML. Because of life, I won't be able to attend to this just at the moment, but when I return, if nobody's gotten to it in the meantime, I'll see if we can turn this into something.
     
  5. lylex10h

    lylex10h Active Member

    Messages:
    792
    Likes Received:
    53
    Trophy Points:
    28
    On http://randjim.x10host.com/BAS/reserve/reserve.php clicking the Send buttons opens at my email client with the content of the form in the body and your @hotmail.com address in the To: field. Is that you want?

    On http://randjim.x10host.com/BAS/lostNfound/lostNfound.php clicking the Send button displays a 404 Not Found (no pun) error. This happens because the action is missing the mailto part.
    Change:
    HTML:
    <form action="randjim@randjim.com" method="post" enctype="text/plain">
    To:
    HTML:
    <form action="mailto:randjim@randjim.com" method="post" enctype="text/plain">
     
  6. randjimx

    randjimx New Member

    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
     
  7. randjimx

    randjimx New Member

    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    On http://randjim.x10host.com/BAS/reserve/reserve.php , yes, thats what I want both to do but the message never goes through. I apparently uploaded version of the file without the script code for the other. If I knew what was wrong with the one, I could fix it and complete the other.
     
  8. essellar

    essellar Community Advocate Community Support

    Messages:
    3,295
    Likes Received:
    227
    Trophy Points:
    63
    Again, all you need to do is add mailto: before the email address in the action= part.
     

Share This Page