LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




ReplyREPLY THREAD
 
Thread Tools Display Modes
  #1  
Old 03-30-2007, 10:03 PM
Ben-41 Ben-41 is offline
Registered User
 
Join Date: Oct 2006
Posts: 79
Rep Power: 7
Ben-41 is on a distinguished road
Contact form-PHP

Hi,


Having some issues receiving emails from the contact page on my website,here are some details,


php script...

PHP Code:


$your_company 
$_GET['COMPANY'];
$your_name $_GET['NAME'];
$your_phone $_GET['PHONE'];
$your_email $_GET['EMAIL'];
$your_message $_GET['MESSAGE'];

$recipient_email "design@custom-pixels.com";
       
$subject "from" $your_email;
$headers "From: " $your_name "<" $your_email ">\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1';

$content "<html><head><title>Contact letter</title></head><body><br>";
$content .= "COMPANY: <b>" $your_company "</b><br>";
$content .= "NAME: <b>" $your_name "</b><br>";
$content .= "PHONE: <b>" $your_phone "</b><br>";
$content .= "EMAIL: <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 sentThank You.
             </
div>
       </
body>
</
html>
<
script>resizeTo(300300)</script> 







Flash input boxes variable names,

NAME
EMAIL
MESSAGE





flash 'send' button script




on(rollOver) {
this.gotoAndPlay("s1");
}


on(rollOut, releaseOutside) {
this.gotoAndPlay("s2");
}

on (release) {

}

on (release) {
_parent.getURL("http://www.hire-ground.co.uk/Contact.php","_blank","GET");
_parent.NAME="NAME:";
_parent.COMMENTS="MESSAGE:";
_parent.EMAIL="EMAIL:";
}

Last edited by Ben-41 : 03-30-2007 at 10:06 PM
Reply With Quote
  #2  
Old 03-31-2007, 10:16 AM
[PAUL FERRIE]'s Avatar
[PAUL FERRIE] [PAUL FERRIE] is offline
Glasgow Flash Developer
 
Join Date: Feb 2005
Location: United Kingdom
Posts: 7,756
Rep Power: 16
[PAUL FERRIE] is on a distinguished road
Whats the problem

You dont say anywhere in your thread lol
Also did you do a forum search on "contact form"?
__________________
.:To me AS is like LEGO, Only for the big Kids :.
- Site - Blog - Glasgow Flasher - Activeden

- bringmadeleinehome.com
Reply With Quote
  #3  
Old 03-31-2007, 11:07 AM
codemaker's Avatar
codemaker codemaker is offline
Registered User
 
Join Date: Mar 2007
Posts: 4
Rep Power: 0
codemaker is on a distinguished road
What exactly you see as been the problem.
As far I can tell, tje "Phone" and "Company" variables are missing.
Reply With Quote
  #4  
Old 03-31-2007, 06:37 PM
Ben-41 Ben-41 is offline
Registered User
 
Join Date: Oct 2006
Posts: 79
Rep Power: 7
Ben-41 is on a distinguished road
php script

Hi,

the problem is I receive a message saying mesage sent,but I never receive an email?my contact form in flash only has 3 input boxes,NAME,EMAIL,and MESSAGE.

thanks for the help so far,
Reply With Quote
  #5  
Old 04-01-2007, 02:06 PM
Ben-41 Ben-41 is offline
Registered User
 
Join Date: Oct 2006
Posts: 79
Rep Power: 7
Ben-41 is on a distinguished road
hi again,


I desperatly need to get this working by tommorow morning,can anybody else shed any light on this for me?

thanks again
Reply With Quote
  #6  
Old 04-01-2007, 02:16 PM
[PAUL FERRIE]'s Avatar
[PAUL FERRIE] [PAUL FERRIE] is offline
Glasgow Flash Developer
 
Join Date: Feb 2005
Location: United Kingdom
Posts: 7,756
Rep Power: 16
[PAUL FERRIE] is on a distinguished road
Have you tried opening your php script in the browser to see if it display any errors
__________________
.:To me AS is like LEGO, Only for the big Kids :.
- Site - Blog - Glasgow Flasher - Activeden

- bringmadeleinehome.com
Reply With Quote
  #7  
Old 04-01-2007, 03:02 PM
Ben-41 Ben-41 is offline
Registered User
 
Join Date: Oct 2006
Posts: 79
Rep Power: 7
Ben-41 is on a distinguished road
php

hey,

I never knew that would show any errors,when opening in FF i get this,


\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1'; $content = "
"; $content .= "NAME: " . $your_name . "
"; $content .= "EMAIL: " . $your_email . "

"; $content .= $your_message; $content .= "
"; mail($recipient_email,$subject,$content,$headers); ?>

and underneath it says'message sent'
Reply With Quote
  #8  
Old 04-01-2007, 03:08 PM
[PAUL FERRIE]'s Avatar
[PAUL FERRIE] [PAUL FERRIE] is offline
Glasgow Flash Developer
 
Join Date: Feb 2005
Location: United Kingdom
Posts: 7,756
Rep Power: 16
[PAUL FERRIE] is on a distinguished road
LMAO
Quote:
 	hey,

I never knew that would show any errors,when opening in FF i get this,
You remind me of me 3 years ago.
Can you post the full php script from < ? to ?>
__________________
.:To me AS is like LEGO, Only for the big Kids :.
- Site - Blog - Glasgow Flasher - Activeden

- bringmadeleinehome.com
Reply With Quote
  #9  
Old 04-01-2007, 04:47 PM
Ben-41 Ben-41 is offline
Registered User
 
Join Date: Oct 2006
Posts: 79
Rep Power: 7
Ben-41 is on a distinguished road
Php

Hi Paul,

here is the PHP script that is currently on the server,

I have attached it as a .TXT file,
Attached Files
File Type: txt Contact.txt (945 Bytes, 7 views)
Reply With Quote
  #10  
Old 04-01-2007, 04:52 PM
[PAUL FERRIE]'s Avatar
[PAUL FERRIE] [PAUL FERRIE] is offline
Glasgow Flash Developer
 
Join Date: Feb 2005
Location: United Kingdom
Posts: 7,756
Rep Power: 16
[PAUL FERRIE] is on a distinguished road
Wait a minute! Why should i help you? didnt you give me a lot of dogs abuse on msn some months back
__________________
.:To me AS is like LEGO, Only for the big Kids :.
- Site - Blog - Glasgow Flasher - Activeden

- bringmadeleinehome.com
Reply With Quote
  #11  
Old 04-01-2007, 05:32 PM
Ben-41 Ben-41 is offline
Registered User
 
Join Date: Oct 2006
Posts: 79
Rep Power: 7
Ben-41 is on a distinguished road
Php

yes,and we sort it out?I said sorry.
Reply With Quote
  #12  
Old 04-01-2007, 05:45 PM
[PAUL FERRIE]'s Avatar
[PAUL FERRIE] [PAUL FERRIE] is offline
Glasgow Flash Developer
 
Join Date: Feb 2005
Location: United Kingdom
Posts: 7,756
Rep Power: 16
[PAUL FERRIE] is on a distinguished road
did we? i cant remember. I only remember the dogs abuse.

Any ho.

Try this
PHP Code:

$ok=mail($recipient_email,$subject,$content,$headers);

if(
$ok){
echo 
"email was sent";
}else{
echo 
"There was an error";

instead of
PHP Code:

mail($recipient_email,$subject,$content,$headers); 

If that dos not work then only i can suggest is that you look at one of the may sample fla's that are on this forum and use the sendAndLoad method instead of getURL()
__________________
.:To me AS is like LEGO, Only for the big Kids :.
- Site - Blog - Glasgow Flasher - Activeden

- bringmadeleinehome.com
Reply With Quote
  #13  
Old 04-01-2007, 05:58 PM
Ben-41 Ben-41 is offline
Registered User
 
Join Date: Oct 2006
Posts: 79
Rep Power: 7
Ben-41 is on a distinguished road
Thanks Pauk,

I now get this error when hiting send in the flash movie,





Parse error: syntax error, unexpected '<' in /home/sites/hire-ground.co.uk/public_html/Contact.php on line 25
Reply With Quote
  #14  
Old 04-01-2007, 06:01 PM
[PAUL FERRIE]'s Avatar
[PAUL FERRIE] [PAUL FERRIE] is offline
Glasgow Flash Developer
 
Join Date: Feb 2005
Location: United Kingdom
Posts: 7,756
Rep Power: 16
[PAUL FERRIE] is on a distinguished road
cant say what the problem is without see what your script looks like now.
__________________
.:To me AS is like LEGO, Only for the big Kids :.
- Site - Blog - Glasgow Flasher - Activeden

- bringmadeleinehome.com
Reply With Quote
  #15  
Old 04-01-2007, 06:03 PM
Ben-41 Ben-41 is offline
Registered User
 
Join Date: Oct 2006
Posts: 79
Rep Power: 7
Ben-41 is on a distinguished road
line 25 in the PHP script is


<html>
Reply With Quote
ReplyREPLY THREAD


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Flash Contact Form and PHP fizmo Flash 8 0 08-06-2009 09:20 AM
flash cs3 ; contact form ; php ; to newbie babbato Flash CS3 / Flash 9 1 08-15-2007 07:52 AM
ASP PHP Advanced EMail Form PLEASE HELP! Jeremy78 Actionscript 2.0 9 02-03-2007 12:18 PM
New to Flash - Contact Form & php Help needed NYZX90 Newbies 1 10-31-2006 09:11 AM
Flash MX & PHP contact form (Multi-Language) evanmarko Flash MX 5 04-11-2003 11:33 AM




All times are GMT. The time now is 04:33 AM.