SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Member
    Join Date
    Jan 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Unhappy Help With Simple Php Form

    I want to make a simple form where people can fill out & it'll be sent to me by email. I found this code off of a tutorial website to do with php, here is the code.

    I made a html page called Signupdothtml on my file manager root

    Code:
    <form method="post" action="sendmaildotphp">
      Email: <input name="email" type="text" /><br />
      Message:<br />
      <textarea name="message" rows="15" cols="40">
      </textarea><br />
      <input type="submit" />
    </form>
    I made a php file in the same root

    Code:
    <?php
      $email = $_REQUEST['email'] ;
      $message = $_REQUEST['message'] ;
    
      mail( "yourname@example.com", "Feedback Form Results",
        $message, "From: $email" );
      header( "Location: wwwdotexampledotcom/thankyoudothtml" );
    ?>
    When I go into my sign up page I type in my other email & write test in the message box. When I click submit this error comes up.

    Network Error (dns_unresolved_hostname)

    Your requested host "wwwdotmywebsitedot100webspacedotnet" could not be resolved by DNS.

    For assistance, contact your network support team.


    My question is why do I get that error & how come I can't get the form message sent to my email?

    Thanks for the help

  2. #2
    SitePoint Zealot
    Join Date
    Oct 2004
    Location
    Sydney, Australia
    Posts
    175
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is the email address you've entered from a valid domain?

  3. #3
    SitePoint Addict aguroyz's Avatar
    Join Date
    Jan 2009
    Location
    Konoha Fire Country
    Posts
    311
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    may be your host does not allow sending emails...

    not quite xur though...
    Uniquely FILIPINO... See how talented and creative Filipinos are.
    http://www.smalltym.com
    Custom Web Designs:
    http://proweaver.com

  4. #4
    SitePoint Member
    Join Date
    Jan 2009
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe your right that the host doesn't supply php email sending. When I went on google I typed in free sub domain hosting that support php & the site came up.

    If not does anyone know of a free hosting site that supports this kind of php activity that I can register with?


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •