First of all hello to all in this forum. I have registered with the aim to resolve my persisting php problem!!

Below is the error that is getting...

Parse error: parse error, unexpected T_VARIABLE in /home/djmystic/public_html/TEST/contact.php on line 10

when i use this code...

<?php 

$your_name = $_GET['t1'];
$your_email = $_GET['t2'];  
$your_subject = $_GET['t3']; 
$your_message = $_GET['t4']; 

$recipient_email = "mystic.dj.ghs@gmail.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 .= "Name: <b>" . $your_name . "</b><br>"; 
$content .= "Subject: <b>" . $your_subject . "</b><br>";  
$content .= "E-mail: <b>" . $your_email . "</b><br><hr><br>"; 
$content .= $your_message; 
$content .= "<br></body></html>"; 

mail($recipient,$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>

    oh thanks the script runs but i haven't recieved any email yet to my inbox!!

    Ok here if you can help is the action script in flash of the Submit Form button

    on (release) {
    	_parent.getURL("contact.php","_blank","GET");
    	_parent.t1="Your Name:";
    	_parent.t2="Your Email:";
    	_parent.t3="Subject:";
    	_parent.t4="Message:";
    }

    i have not recieven any email and when executing the flash actionscript it gives no errors even the php code now i added the ; and it gives no errors but the emails are not arriving!!

      I have found even a Mail failure - no recipient addresses in the inbox of my pirvate DNS staing that

      A message that you sent contained no recipient addresses, and therefore no
      delivery could be attempted.
      
      ------ This is a copy of your message, including all the headers. ------
      
      To: 
      Subject: from 
      From:  <>
      Content-type: text/html; charset=iso-8859-1
      Message-Id: <E1HYibM-0006jZ-0Z@hd-t1119cl.privatedns.com>
      Sender:  <djmystic@hd-t1119cl.privatedns.com>
      Date: Tue, 03 Apr 2007 08:59:08 -0400
      
      <html><head><title>Contact letter</title></head><body><br>Name: <b></b><br>Subject:
      <b></b><br>E-mail: <b></b><br><hr><br><br></body></html>
      
      

      What is the problem PLS HEL CUZ I AM REAL NEWBIE!!!

        Moving to ClientSide Technologies, since the problem is now related to the Flash ActionScript not sending the variables along to the PHP script.

          yeah that is what i was thinking i have changed the script to the below and obvious the variables in flash but still no success

          Action script

          on (release) {
          _parent.getURL("contact.php","_blank","GET");
          _parent.your_name="Your Name:";
          _parent.your_email="Your Email:";
          _parent.your_subject="Subject:";
          _parent.your_message="Message:";
          }

          PHP

          <?php 
          
          $your_name = $_GET['your_name'];
          $your_email = $_GET['your_email']; 
          $your_subject = $_GET['your_subject']; 
          $your_message = $_GET['your_message']; 
          
          $recipient_email = "mystic.dj.ghs@gmail.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 .= "Name: <b>" . $your_name . "</b><br>"; 
          $content .= "Subject: <b>" . $your_subject . "</b><br>"; 
          $content .= "E-mail: <b>" . $your_email . "</b><br><hr><br>"; 
          $content .= $your_message; 
          $content .= "<br></body></html>"; 
          
          mail($recipient,$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>

          And still getting same email

          A message that you sent contained no recipient addresses, and therefore no
          delivery could be attempted.
          
          ------ This is a copy of your message, including all the headers. ------
          
          To: 
          Subject: from 
          From:  <>
          Content-type: text/html; charset=iso-8859-1
          Message-Id: <E1HYibM-0006jZ-0Z@hd-t1119cl.privatedns.com>
          Sender:  <djmystic@hd-t1119cl.privatedns.com>
          Date: Tue, 03 Apr 2007 08:59:08 -0400
          
          <html><head><title>Contact letter</title></head><body><br>Name: <b></b><br>Subject:
          <b></b><br>E-mail: <b></b><br><hr><br><br></body></html>

            I'm no Action script guru, but can you do something like this instead:

            on (release) {
            _parent.getURL("contact.php?your_name=" + _parent.your_name + "&your_email=" + _parent.your_email,"_blank","GET");
            }

            etc.?

            Note that if you're sending data in the query, the entire URI is limited to 255 (or 256?) characters.

              Write a Reply...