View Single Post
  #1   Spotlight this post!  
Unread 21-04-2008, 19:49
GoldenAI's Avatar
GoldenAI GoldenAI is offline
AI + Gold = GoldenAI
AKA: Johnathan Lane
FRC #0558 (RoboSquad 558)
Team Role: Webmaster
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Connecticut
Posts: 34
GoldenAI will become famous soon enough
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.
Reply With Quote