HTML Help Forum HTML Help
Please Search for the answer to your question before asking it! Thanks.
 

Form not working
Post a Reply to this Topic Ask a New Question
Click here to go to the original topic
       HTML Help Forum -> General HTML
View previous topic :: View next topic  
Author Message
rodda



Joined: 22 Oct 2009
Posts: 1

Posted: Thu Oct 22, 2009 4:33 am     Form not working  

Hi Guys,

I have a html/php form that I am trying to get to work. Basically if I use the below it will go to the thankyou page which is what I want however the email is not sent. If I remove teh "thankyou.php" and put "" the email works but of course it doesnt go to teh thankyou page.

<form id="form1" name="form1" method="post" action="thankyou.php">

Do you have any susgestions?

Many thanks,

Rodney
PayneLess Designs



Joined: 28 Feb 2007
Posts: 4289
Location: MS

Posted: Thu Oct 22, 2009 6:18 am      

Your current hosting package MUST allow SMTP ( http://en.wikipedia.org/wiki/Simple_Mail_Transfer_Protocol ) to work. Otherwise, no email can be sent.

Not receiving form result emails?

This problem is caused by one of two things:

1) Either your hosting provider does not allow sendmail to work with PHP, or 2) your PHP is configured to not use sendmail. In either case, contact your hosting provider and ask them to configure sendmail to work with your PHP.
sticks464



Joined: 31 Dec 2006
Posts: 2629

Posted: Thu Oct 22, 2009 6:29 am      

Is thankyou.php an action script the sends the email and re-directs to a thank you page? Usually this script lets you set a recipient email address so it knows where to send the email before it re-directs.
PayneLess Designs



Joined: 28 Feb 2007
Posts: 4289
Location: MS

Posted: Thu Oct 22, 2009 6:44 am      

Most forms will have all the form's processing on one PHP file. That grabs the the email address, form's inputted content by User and then redirects to the thank you page you have made.

If you have SMTP enabled for your server, then it's possible the form file thankyou.php is the wrong one for the form's action="" attribute. This file could be called from within the main form processing file to deliver the thank you page, but if you are directing the form to it directly, then rest of form is probably not being processed.

Would have to see the form's code and related files or a link to where the form should be working. Depending on accessibility of php files, you may have to post the code here.
 
 
DARFUR
HOSTING / DESIGN
MAKE MONEY

       HTML Help Forum -> General HTML
Page 1 of 1


Powered by phpBB Search Engine Indexer
Powered by phpBB 2.0.19 © 2001, 2002 phpBB Group