When you click on the submit button, it ask you to download the PHP file instead of posting the results. This has just started. can you help??
Thanks
Fireman12
When you click on the submit button, it ask you to download the PHP file instead of posting the results. This has just started. can you help??
Thanks
Fireman12
Do you admin the server or
Do you admin the server or does somebody else?
-Andrew M Riley
PhP 1.7.2 followup
I admin my own server but send the e-mails to another domain other than my own. www.fireman12.com is my domain, e-mail goes to fireman12@dixie-net.com.
I have now upgraded to apache 2.2.4 and PHP 5.2.3
I have the server now responding correctly. It works until I submit and I now get the following error from Formmail >>>Warning: mail() [function.mail]: SMTP server response: 501 5.5.4 Invalid Address in C:\Inetpub\wwwroot\formmail_2.php on line 453.
Good thing is I have not changed anything from last years form info.
You help is much appreciated. I know it is somethng simple.
You can view the source code here , www.fireman12.com/play.html.
I can send you the php formmail file to an e-mail addy if that will help.
Email error
Looking at the error message something is wrong with the email setup or the php.ini. Seeing that you're using windows can you verify that the SMTP section of php.ini is setup properly for your SMTP server. Also, you'll want to check that the email address you are sending to is valid.
-Andrew M Riley
Follow up e-mail error
Problem fixed. Need help with 1 thing. I had to set the from field to null instead of true
Line 430 phpformmail 1.07.2
$mail_header = 'Return-Path: ' . eregi_replace($email_replace_array,'',$return_path) . $mail_newline;
if (FROM != null)<<<(true)
$mail_header = 'From:' . $form[realname];
$mail_header .= 'FROM:' . FROM . $mail_newline; $mail_header .= 'Reply-to: ';
The only thing that is annoying is that in the e-mail there is no From field but it is working so I can live with it. But if you have an idea that will fix this please let me know. Thanks for your help Andrew!!
fireman12