Go to Post The future is being developed by FIRSTers! - Andy Baker [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #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
  #2   Spotlight this post!  
Unread 21-04-2008, 22:43
OScubed's Avatar
OScubed OScubed is offline
Lee Drake, CEO, OS-Cubed Inc.
AKA: Lee Drake
FRC #1511 (Rolling Thunder)
Team Role: Parent
 
Join Date: Mar 2008
Rookie Year: 2006
Location: Rochester, NY
Posts: 156
OScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond repute
Send a message via ICQ to OScubed Send a message via AIM to OScubed Send a message via MSN to OScubed
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?
__________________
Lee Drake, CEO, OS-Cubed, Inc.
Business Mentor - team 1511
Rochester, NY

Building optimal, stable, secure solutions to your business challenges.

Reply With Quote
  #3   Spotlight this post!  
Unread 22-04-2008, 14:45
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
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?

Last edited by GoldenAI : 22-04-2008 at 14:55.
Reply With Quote
  #4   Spotlight this post!  
Unread 22-04-2008, 18:49
Ctrl Alt Delete's Avatar
Ctrl Alt Delete Ctrl Alt Delete is offline
Code Monkey
AKA: David Weitz
FRC #0177 (Bobcats)
Team Role: Alumni
 
Join Date: Jan 2005
Rookie Year: 2005
Location: Connecticut
Posts: 89
Ctrl Alt Delete is a splendid one to beholdCtrl Alt Delete is a splendid one to beholdCtrl Alt Delete is a splendid one to beholdCtrl Alt Delete is a splendid one to beholdCtrl Alt Delete is a splendid one to beholdCtrl Alt Delete is a splendid one to behold
Send a message via AIM to Ctrl Alt Delete Send a message via MSN to Ctrl Alt Delete
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.
__________________

Life lessons learned at robot:
1.) Never take apart power strips
2.) Sleep is required, but not essential to survival

Failure to abide by these lessons will result in headaches...and flaming pants.

"Here at Bobcat Robotics, we pride ourselves in having 60-table MySQL databases, girlfriend cookies, and a vinyl cutter." -Chris Jelly

Last edited by Ctrl Alt Delete : 22-04-2008 at 18:53.
Reply With Quote
  #5   Spotlight this post!  
Unread 23-04-2008, 14:05
OScubed's Avatar
OScubed OScubed is offline
Lee Drake, CEO, OS-Cubed Inc.
AKA: Lee Drake
FRC #1511 (Rolling Thunder)
Team Role: Parent
 
Join Date: Mar 2008
Rookie Year: 2006
Location: Rochester, NY
Posts: 156
OScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond reputeOScubed has a reputation beyond repute
Send a message via ICQ to OScubed Send a message via AIM to OScubed Send a message via MSN to OScubed
Re: Flash / PHP contact form

Quote:
Originally Posted by GoldenAI View Post
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.
__________________
Lee Drake, CEO, OS-Cubed, Inc.
Business Mentor - team 1511
Rochester, NY

Building optimal, stable, secure solutions to your business challenges.

Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
BIMBA form back up? Vikesrock Pneumatics 0 04-03-2008 13:27
BOM form Adama General Forum 3 08-03-2007 16:28
Release Form kjohnson Championship Event 4 27-01-2004 16:21
Form? Lisa Huang Chairman's Award 1 16-02-2002 02:24
Submission Form Maddie N Chairman's Award 0 06-02-2002 20:39


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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