SitePoint Sponsor

User Tag List

Results 1 to 6 of 6
  1. #1
    SitePoint Member
    Join Date
    Jun 2010
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Having Form problems with GoDaddy PHP

    Hello everyone,

    I've created a form in Dreamweaver for my contact page. I uploaded the file and tested the form by filing in the info for each field, then clicking the submit button, where I'm redirected to my thanks.html page. Problem is, when I check my mail, no message appears. This is my first time creating a form page so I don't know whether this is a HTML or PHP issue. The tech support at GoDaddy has been useless regarding this issue. Has anyone had issues with GoDaddy PHP or knows how to solve this problem?

    www.exposedproductionsnyc.com/contact.html

    Code:
    <form id="general" action="/gdform.php" method="post">
    
    <input type="hidden" name="subject" value="Form Submission" />
    <input type="hidden" name="redirect" value="thanks.html" />
    
    
    <div class="form_item"><label for="c-name">Your Name </label><input id="c-name" class="req" /></div>
    
    <div class="form_item"><label for="c-email">Your Email </label><input id="c-email" class="email req" /></div>
    
    
    <div class="form_item"><label for="c-website">Website (Optional)</label><input id="c-website" /></div>
    
    
    <div class="form_item"><label for="c-message">Your Message</label><textarea rows="220"cols="190" class="req" id="c-message"></textarea></div>
    
    <div class="submit_button"><input type="submit" name="submit" value="Submit"  /></div>
    </form>

  2. #2
    It's all Geek to me silver trophybronze trophy
    ralph.m's Avatar
    Join Date
    Mar 2009
    Location
    Melbourne, AU
    Posts
    24,296
    Mentioned
    460 Post(s)
    Tagged
    8 Thread(s)
    This will be a problem with your PHP file. Normally it will be set up to send the message, sender's email etc with the email, so make sure that's set up properly.

    This is a PHP question, so if you need more help, click the little orange flag in the bottom left of this post and request that the thread be moved to the PHP forum. In that case, post your PHP file too, so that people can tell you what's wrong.

    Or you can PM your PHP code to me, if you prefer, and I'll have a look, although I'm no expert in this. Looks like it's pretty simple to fix, though.

    PS: I think your form fields are too black. They are hard to distinguish and may confuse many users. I also wouldn't put a naked email address on your page either, unless you LOVE spam.

  3. #3
    Unobtrusively zen silver trophybronze trophy
    paul_wilkins's Avatar
    Join Date
    Jan 2007
    Location
    Christchurch, New Zealand
    Posts
    14,729
    Mentioned
    104 Post(s)
    Tagged
    4 Thread(s)
    More needs to occur than just submitting a form to a page, for the form to be emailed to you.

    The php page that receives the form will need to retrieve the form data that was posted to it, put that data together as appropriate email content, and then send an email to an appropriate location with the content.

    Here's an appropriate tutorial to help get you started.
    http://www.kirupa.com/web/php_contact_form.htm

    The part relating to the php page and emailing, is at http://www.kirupa.com/web/php_contact_form2.htm
    Programming Group Advisor
    Reference: JavaScript, Quirksmode Validate: HTML Validation, JSLint
    Car is to Carpet as Java is to JavaScript

  4. #4
    SitePoint Member
    Join Date
    Jun 2010
    Posts
    6
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks ralph.m and pmw57 for getting back back to me. The problem is solved. Apparently, there was a delay receiving email at my GoDaddy account. When I check the account this morning, i had five messages in my inbox.

    Also, in my code, I previously omitted a name tag in the textarea field. But all is great now!

  5. #5
    SitePoint Zealot west end lane's Avatar
    Join Date
    Mar 2010
    Location
    London, U.K.
    Posts
    109
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by nocturn View Post
    Thanks ralph.m and pmw57 for getting back back to me. The problem is solved. Apparently, there was a delay receiving email at my GoDaddy account. When I check the account this morning, i had five messages in my inbox.

    Also, in my code, I previously omitted a name tag in the textarea field. But all is great now!
    Yeah Godaddy is kinda slow with mails. Had the same experience - thought my contact form wasn't working, but next day had around ten test mails in the inbox.

    If my mail takes 30 mins to arrive, that's a good day for GDaddy.

  6. #6
    SitePoint Member
    Join Date
    Jul 2010
    Location
    Redwood City, California
    Posts
    8
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by west end lane View Post
    Yeah Godaddy is kinda slow with mails. Had the same experience - thought my contact form wasn't working, but next day had around ten test mails in the inbox.

    If my mail takes 30 mins to arrive, that's a good day for GDaddy.
    I just set up a contact form on my goDaddy site and got the emails almost instantaneously. Maybe it's the time of day.

    One problem I have with them is registering to this forum. I'm pretty sure they reject/drop all confirmation emails. I had to get set up manually.

    Curt


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
  •