|01-31-2012, 05:10 AM||#1|
Join Date: Jan 2012
Help with form scripts.
I have been building a site for someone and it needed to have a contact form. For some reason FormMail.pl didn't work right. So I used Formto Email.php instead. It seemed to work a couple of times, but then I just started getting a message that said "invalid email address". I think they are on GoDaddy, and I spoke to them and they said FormMail.pl won't work unless you use a true email, not one that has been forwarded to your inbox. I don't know what they have so that is why I switched to FormtoEmail. I would like to get either one to work.
In FormMail I altered the script to show my domain in the @refers line. I heard that you may need to change the line before that too. It looks like this
$mailprog = '/usr/lib/sendmail -i -t';
I think you are supposed to show the location of your servers sendmail, but I don't know how to do this. What do they mean by server? And do I need to do this to get it to work?
In FormtoEmail I just get "invalid email" as a response because I used an email associated to a domain, like email@example.com. When I use a regular one like firstname.lastname@example.org it works fine.
|04-11-2012, 09:28 PM||#3|
Join Date: Dec 2011
heres the script i used - pretty basic.
<form action="FormtoEmail.php" method="post" name="contactus"><label><b>Name:</b></label>
<input name="name" type="text" />
<input name="Email" type="text" />
<textarea name="Comments" cols="50" rows="10">Type your questions or comments here.</textarea>
<p><label><b>How Did You Hear About Us?</b></label>
<select name="jumpMenu" id="jumpMenu" onchange="MM_jumpMenu('parent',this,0)">
<option>Word Of Mouth</option>
<option>Other - Please specify in comments</option>
<input name="submit" type="submit" value="Submit" /></form>
then edit the FormtoEmail.php and on the second or third line, make sure your valid email is there.
remember, in your contact form, in the form action at the top, FormtoEmail.php IS case sensitive.
also, make sure your contact form and your FormtoEmail.php file are in the same directory.
should work fine!
I have made alot of contact forms, so PM me if this still isnt working. if it does work, post here and let us know!
Last edited by rooster; 04-11-2012 at 10:51 PM. Reason: fixing code :-)
|formmail, forms to email, pearl, php, scripts|