Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   General Forum (http://www.chiefdelphi.com/forums/forumdisplay.php?f=16)
-   -   Flash / PHP contact form (http://www.chiefdelphi.com/forums/showthread.php?t=67145)

GoldenAI 21-04-2008 19:49

Flash / PHP contact form
 
coding help

the website 112nine.com is done in flash and so is the contact form
problem is I don't know why it won't send the form info to the email address I specified. I think its the php, but I'm not sure.

This is the php code I used.

PHP Code:

<?php 

    $your_name 
$_GET['txt1']; 
    
$your_phone $_GET['txt2']; 
    
$your_email $_GET['txt3']; 
    
$your_message $_GET['txt6']; 

    
$recipient_email "lroblee@att.net"

    
$subject "from " $your_email
    
$headers "From: " $your_email " <" $your_email ">\n"
    
$headers .= 'Content-type: text/html; charset=iso-8859-1'

    
$content "<html><head><title>Contact letter</title></head><body><br>";  
    
$content .= "Name: <b>" $your_name "</b><br>";  
    
$content .= "Phone: <b>" $your_phone "</b><br>";  
    
$content .= "E-mail: <b>" $your_email "</b><br><hr><br>";  
    
$content .= $your_message;  
    
$content .= "<br></body></html>"

    
mail($recipient_email,$subject,$content,$headers); 
?> 
<html>  
    <body bgcolor="#282E2C">  
        <div align="center" style="margin-top:60px;color:#FFFFFF;font-size:11px;font-family:Tahoma;font-weight:bold">  
                 Your message was sent. Thank you.  
            </div>  
        </body>  
</html>  
<script>resizeTo(300, 300)</script>

any ideas? I will be posting the submit flash code I used soon.
any help is appreciated.

OScubed 21-04-2008 22:43

Re: Flash / PHP contact form
 
Where is your SMTP server configured? Are you sure you have permission to post to it without authentication and/or have you configured authentication in your script somewhere?

GoldenAI 22-04-2008 14:45

Re: Flash / PHP contact form
 
that may be the problem. I don't really understand any of that.

the website is hosted @ phpwebhosting.com

so I assume php is already installed I just changed the php type to php five or something like that.

doom de doom de doom lol

it says it runs through the php parser automatically as long as we uploaded the php file to the www directory which we did.
any more ideas?

Ctrl Alt Delete 22-04-2008 18:49

Re: Flash / PHP contact form
 
Echo out the GET variables to make sure they're getting passed through in the URL string. If that works, I would check your spam box.

EDIT: URL string should be like this: file.php?txt1=name&txt2=phone&txt3=email&txt6=mess age

Make sure you sanitize the variables too.

OScubed 23-04-2008 14:05

Re: Flash / PHP contact form
 
Quote:

Originally Posted by GoldenAI (Post 741130)
that may be the problem. I don't really understand any of that.

the website is hosted @ phpwebhosting.com

so I assume php is already installed I just changed the php type to php five or something like that.

doom de doom de doom lol

it says it runs through the php parser automatically as long as we uploaded the php file to the www directory which we did.
any more ideas?

Email must be queued to an SMTP server which then forwards it to the destination. Usually an ISP will provide you with the SMTP server address, which you may need to configure before you can send mail. Sometimes you can send mail without providing a username and password, others require you to provide username and password.


All times are GMT -5. The time now is 04:15.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi