I can't get php and swf contact form to work

  • three_questions
  • Newbie
  • Newbie
  • three_questions
  • Posts: 8

Post 3+ Months Ago

Hi all,

I am trying to complete my first HTML site but am having some trouble getting a contact form i downloaded at http://www.macromediahelp.com/flash/php_flash_contact_form/ to work.

The page link is:

http://www.yusufm.com/contact.html

Here is the page code:

Code: [ Select ]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Contact</title>
<style type="text/css">
<!--
body {
    background-color: #CCCCCC;
}
#apDiv1 {
    position:absolute;
    left:69px;
    top:29px;
    width:234px;
    height:29px;
    z-index:1;
}
#apDiv2 {
    position:absolute;
    left:71px;
    top:64px;
    width:244px;
    height:25px;
    z-index:2;
}
-->
</style>
<style type="text/css">
<!--
.style4 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
}
-->
</style>
 
<style type="text/css">
<!--
#apDiv3 {
    position:absolute;
    left:80px;
    top:297px;
    width:864px;
    height:25px;
    z-index:1;
}
.style5 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 9pt;
    font-style: normal;
    vertical-align: baseline;
    line-height: 6px;
    color: #FFFFFF;
}
.style6 {font-family: Arial, Helvetica, sans-serif}
-->
</style>
 
 
 
<style type="text/css">
<!--
.style12 {
    font-size: 10pt;
    font-family: Arial, Helvetica, sans-serif;
}
-->
</style>
<script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
<script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
<link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
<link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
</head>
 
<body>
<table width="920" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr style='background-image:url("images/Header.jpg");'>
    <td height="85">&nbsp;</td>
  </tr>
  <tr align="center" valign="top" style='background-image:url("images/content.jpg");'>
    <td height="188"><table width="919" border="0" cellpadding="0" cellspacing="0">
      <tr align="center">
        <td width="10" height="433" valign="top">&nbsp;</td>
        <td width="104" align="left" valign="top"><table width="84" border="0" align="center" cellpadding="0" cellspacing="0">
          <tr>
            <td height="123"><ul id="MenuBar1" class="MenuBarVertical">
              <li><a href="index.html" class="style4">About Me</a> </li>
              <li><a href="#" class="MenuBarVertical style4">Portfolio</a>
                  <ul>
                    <li><a href="Ctrlaltdelete.html" class="style4">Ctrl-alt-delete</a></li>
                    <li><a href="wordsplus.html" class="style4">Words Plus</a></li>
                    <li><a href="Panicescape.html" class="style4">Panic Escape</a></li>
                    <li><a href="greenriders.html" class="style4">Green Riders</a></li>
                    <li><a href="frogchair.html" class="style6">Frog Chair</a></li>
                    <li><a href="shoedesign.html" class="style4">Shoe Design</a></li>
                    </ul>
              </li>
              <li><a href="cv.html" class="style4">Skills &amp; CV</a> </li>
              <li><a href="contact.html" class="style4">Contact</a></li>
            </ul></td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
          <tr>
            <td>&nbsp;</td>
          </tr>
        </table></td>
        <td width="12" valign="top">&nbsp;</td>
        <td width="770" align="left" valign="top"><table width="761" border="0" align="left" cellpadding="0" cellspacing="0">
          <tr align="left" valign="top">
            <td height="421" align="left" valign="top"><div class="style4">
                <div align="justify">
                  <p class="style12"><strong class="style6">CONTACT:</strong><br />
                    Email: <a href="mailto:info@yusufm.com"><img src="images/image2.png" width="125" height="21" border="0" align="absmiddle" /></a><br />
                    Feel free to contact me with any   inquires about freelance work, questions or comments.</p>
                  <p align="center">
                    <script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','300','height','302','title','form','src','Library/Contact form','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Library/Contact form' ); //end AC code
                    </script>
                    <noscript>
                    <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="300" height="302" title="form">
                      <param name="movie" value="Library/Contact form.swf" />
                      <param name="quality" value="high" />
                      <embed src="Library/Contact form.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="300" height="302"></embed>
                    </object>
                    </noscript>
                  </p>
                  <p align="center"><strong>This contact form is not working yet and is currenlty being tested<br />
                  </strong></p>
                </div>
            </div>              </td>
          </tr>
        </table></td>
        <td width="23" align="left" valign="top">&nbsp;</td>
      </tr>
     
     
    </table></td>
  </tr>
  <tr style='background-image:url("images/Footer.jpg");'>
    <td height="60" align="center" valign="top"><div>
      <h1 class="style5"><br />
        <br />
        Yusuf  Muhammad’s Industrial Design Portfolio  © Yusuf Muhammad 2008</h1>
    </div></td>
  </tr>
</table>
 
 
<script type="text/javascript">
<!--
var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
//-->
</script>
</body>
</html>
 
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5. <title>Contact</title>
  6. <style type="text/css">
  7. <!--
  8. body {
  9.     background-color: #CCCCCC;
  10. }
  11. #apDiv1 {
  12.     position:absolute;
  13.     left:69px;
  14.     top:29px;
  15.     width:234px;
  16.     height:29px;
  17.     z-index:1;
  18. }
  19. #apDiv2 {
  20.     position:absolute;
  21.     left:71px;
  22.     top:64px;
  23.     width:244px;
  24.     height:25px;
  25.     z-index:2;
  26. }
  27. -->
  28. </style>
  29. <style type="text/css">
  30. <!--
  31. .style4 {
  32.     font-family: Arial, Helvetica, sans-serif;
  33.     font-size: 9pt;
  34. }
  35. -->
  36. </style>
  37.  
  38. <style type="text/css">
  39. <!--
  40. #apDiv3 {
  41.     position:absolute;
  42.     left:80px;
  43.     top:297px;
  44.     width:864px;
  45.     height:25px;
  46.     z-index:1;
  47. }
  48. .style5 {
  49.     font-family: Arial, Helvetica, sans-serif;
  50.     font-size: 9pt;
  51.     font-style: normal;
  52.     vertical-align: baseline;
  53.     line-height: 6px;
  54.     color: #FFFFFF;
  55. }
  56. .style6 {font-family: Arial, Helvetica, sans-serif}
  57. -->
  58. </style>
  59.  
  60.  
  61.  
  62. <style type="text/css">
  63. <!--
  64. .style12 {
  65.     font-size: 10pt;
  66.     font-family: Arial, Helvetica, sans-serif;
  67. }
  68. -->
  69. </style>
  70. <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
  71. <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
  72. <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
  73. <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
  74. </head>
  75.  
  76. <body>
  77. <table width="920" border="0" align="center" cellpadding="0" cellspacing="0">
  78.   <tr style='background-image:url("images/Header.jpg");'>
  79.     <td height="85">&nbsp;</td>
  80.   </tr>
  81.   <tr align="center" valign="top" style='background-image:url("images/content.jpg");'>
  82.     <td height="188"><table width="919" border="0" cellpadding="0" cellspacing="0">
  83.       <tr align="center">
  84.         <td width="10" height="433" valign="top">&nbsp;</td>
  85.         <td width="104" align="left" valign="top"><table width="84" border="0" align="center" cellpadding="0" cellspacing="0">
  86.           <tr>
  87.             <td height="123"><ul id="MenuBar1" class="MenuBarVertical">
  88.               <li><a href="index.html" class="style4">About Me</a> </li>
  89.               <li><a href="#" class="MenuBarVertical style4">Portfolio</a>
  90.                   <ul>
  91.                     <li><a href="Ctrlaltdelete.html" class="style4">Ctrl-alt-delete</a></li>
  92.                     <li><a href="wordsplus.html" class="style4">Words Plus</a></li>
  93.                     <li><a href="Panicescape.html" class="style4">Panic Escape</a></li>
  94.                     <li><a href="greenriders.html" class="style4">Green Riders</a></li>
  95.                     <li><a href="frogchair.html" class="style6">Frog Chair</a></li>
  96.                     <li><a href="shoedesign.html" class="style4">Shoe Design</a></li>
  97.                     </ul>
  98.               </li>
  99.               <li><a href="cv.html" class="style4">Skills &amp; CV</a> </li>
  100.               <li><a href="contact.html" class="style4">Contact</a></li>
  101.             </ul></td>
  102.           </tr>
  103.           <tr>
  104.             <td>&nbsp;</td>
  105.           </tr>
  106.           <tr>
  107.             <td>&nbsp;</td>
  108.           </tr>
  109.         </table></td>
  110.         <td width="12" valign="top">&nbsp;</td>
  111.         <td width="770" align="left" valign="top"><table width="761" border="0" align="left" cellpadding="0" cellspacing="0">
  112.           <tr align="left" valign="top">
  113.             <td height="421" align="left" valign="top"><div class="style4">
  114.                 <div align="justify">
  115.                   <p class="style12"><strong class="style6">CONTACT:</strong><br />
  116.                     Email: <a href="mailto:info@yusufm.com"><img src="images/image2.png" width="125" height="21" border="0" align="absmiddle" /></a><br />
  117.                     Feel free to contact me with any   inquires about freelance work, questions or comments.</p>
  118.                   <p align="center">
  119.                     <script type="text/javascript">
  120. AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','300','height','302','title','form','src','Library/Contact form','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Library/Contact form' ); //end AC code
  121.                     </script>
  122.                     <noscript>
  123.                     <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="300" height="302" title="form">
  124.                       <param name="movie" value="Library/Contact form.swf" />
  125.                       <param name="quality" value="high" />
  126.                       <embed src="Library/Contact form.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="300" height="302"></embed>
  127.                     </object>
  128.                     </noscript>
  129.                   </p>
  130.                   <p align="center"><strong>This contact form is not working yet and is currenlty being tested<br />
  131.                   </strong></p>
  132.                 </div>
  133.             </div>              </td>
  134.           </tr>
  135.         </table></td>
  136.         <td width="23" align="left" valign="top">&nbsp;</td>
  137.       </tr>
  138.      
  139.      
  140.     </table></td>
  141.   </tr>
  142.   <tr style='background-image:url("images/Footer.jpg");'>
  143.     <td height="60" align="center" valign="top"><div>
  144.       <h1 class="style5"><br />
  145.         <br />
  146.         Yusuf  Muhammad’s Industrial Design Portfolio  © Yusuf Muhammad 2008</h1>
  147.     </div></td>
  148.   </tr>
  149. </table>
  150.  
  151.  
  152. <script type="text/javascript">
  153. <!--
  154. var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
  155. //-->
  156. </script>
  157. </body>
  158. </html>
  159.  


I put both the mailer php and contact form in a subfolder and the mailer php code is below:

Code: [ Select ]
<?
 
// read the variables form the string, (this is not needed with some servers).
$subject = $_REQUEST["subject"];
$message = $_REQUEST["message"];
$sender = $_REQUEST["sender"];
 
 
// include sender IP in the message.
$full_message = $_SERVER['REMOTE_ADDR'] . "\n\n" . $message;
$message= $full_message;
 
// remove the backslashes that normally appears when entering " or '
$message = stripslashes($message);
$subject = stripslashes($subject);
$sender = stripslashes($sender);
 
// add a prefix in the subject line so that you know the email was sent by online form
$subject = "Contact form". $subject;
 
// send the email, make sure you replace "email@yourserver.com" with your email address
if(isset($message) and isset($subject) and isset($sender)){
    mail("info@yusufm.com", $subject, $message, "From: $sender");
}
?>
  1. <?
  2.  
  3. // read the variables form the string, (this is not needed with some servers).
  4. $subject = $_REQUEST["subject"];
  5. $message = $_REQUEST["message"];
  6. $sender = $_REQUEST["sender"];
  7.  
  8.  
  9. // include sender IP in the message.
  10. $full_message = $_SERVER['REMOTE_ADDR'] . "\n\n" . $message;
  11. $message= $full_message;
  12.  
  13. // remove the backslashes that normally appears when entering " or '
  14. $message = stripslashes($message);
  15. $subject = stripslashes($subject);
  16. $sender = stripslashes($sender);
  17.  
  18. // add a prefix in the subject line so that you know the email was sent by online form
  19. $subject = "Contact form". $subject;
  20.  
  21. // send the email, make sure you replace "email@yourserver.com" with your email address
  22. if(isset($message) and isset($subject) and isset($sender)){
  23.     mail("info@yusufm.com", $subject, $message, "From: $sender");
  24. }
  25. ?>


Any help or advise would be greatly appreciated
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • three_questions
  • Newbie
  • Newbie
  • three_questions
  • Posts: 8

Post 3+ Months Ago

I am having some trouble getting a contact form i downloaded at http://www.macromediahelp.com/flash/php_flash_contact_form/ to work.

The page link is:

http://www.yusufm.com/contact.html

Here is the page code:

Code: [ Select ]
  <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
   <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Contact</title>
    <style type="text/css">
    <!--
    body {
        background-color: #CCCCCC;
   }
   #apDiv1 {
       position:absolute;
       left:69px;
       top:29px;
       width:234px;
       height:29px;
       z-index:1;
   }
   #apDiv2 {
       position:absolute;
       left:71px;
       top:64px;
       width:244px;
       height:25px;
       z-index:2;
  }
   -->
   </style>
   <style type="text/css">
   <!--
   .style4 {
       font-family: Arial, Helvetica, sans-serif;
       font-size: 9pt;
   }
   -->
   </style>
    
   <style type="text/css">
   <!--
   #apDiv3 {
       position:absolute;
       left:80px;
       top:297px;
       width:864px;
       height:25px;
       z-index:1;
   }
   .style5 {
       font-family: Arial, Helvetica, sans-serif;
       font-size: 9pt;
       font-style: normal;
       vertical-align: baseline;
       line-height: 6px;
       color: #FFFFFF;
   }
   .style6 {font-family: Arial, Helvetica, sans-serif}
   -->
   </style>
    
    
    
   <style type="text/css">
   <!--
   .style12 {
       font-size: 10pt;
       font-family: Arial, Helvetica, sans-serif;
   }
   -->
   </style>
   <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
   <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
   <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
   <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
   </head>
    
   <body>
   <table width="920" border="0" align="center" cellpadding="0" cellspacing="0">
     <tr style='background-image:url("images/Header.jpg");'>
       <td height="85">&nbsp;</td>
     </tr>
     <tr align="center" valign="top" style='background-image:url("images/content.jpg");'>
       <td height="188"><table width="919" border="0" cellpadding="0" cellspacing="0">
         <tr align="center">
           <td width="10" height="433" valign="top">&nbsp;</td>
           <td width="104" align="left" valign="top"><table width="84" border="0" align="center" cellpadding="0" cellspacing="0">
             <tr>
               <td height="123"><ul id="MenuBar1" class="MenuBarVertical">
                 <li><a href="index.html" class="style4">About Me</a> </li>
                 <li><a href="#" class="MenuBarVertical style4">Portfolio</a>
                     <ul>
                       <li><a href="Ctrlaltdelete.html" class="style4">Ctrl-alt-delete</a></li>
                       <li><a href="wordsplus.html" class="style4">Words Plus</a></li>
                       <li><a href="Panicescape.html" class="style4">Panic Escape</a></li>
                       <li><a href="greenriders.html" class="style4">Green Riders</a></li>
                       <li><a href="frogchair.html" class="style6">Frog Chair</a></li>
                       <li><a href="shoedesign.html" class="style4">Shoe Design</a></li>
                       </ul>
                 </li>
                 <li><a href="cv.html" class="style4">Skills &amp; CV</a> </li>
                <li><a href="contact.html" class="style4">Contact</a></li>
              </ul></td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
            <tr>
              <td>&nbsp;</td>
            </tr>
          </table></td>
          <td width="12" valign="top">&nbsp;</td>
          <td width="770" align="left" valign="top"><table width="761" border="0" align="left" cellpadding="0" cellspacing="0">
            <tr align="left" valign="top">
              <td height="421" align="left" valign="top"><div class="style4">
                  <div align="justify">
                    <p class="style12"><strong class="style6">CONTACT:</strong><br />
                      Email: <a href="mailto:info@yusufm.com"><img src="images/image2.png" width="125" height="21" border="0" align="absmiddle" /></a><br />
                      Feel free to contact me with any   inquires about freelance work, questions or comments.</p>
                    <p align="center">
                      <script type="text/javascript">
  AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','300','height','302','title','form','src','Library/Contact form','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Library/Contact form' ); //end AC code
                      </script>
                      <noscript>
                      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="300" height="302" title="form">
                        <param name="movie" value="Library/Contact form.swf" />
                        <param name="quality" value="high" />
                        <embed src="Library/Contact form.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="300" height="302"></embed>
                      </object>
                      </noscript>
                    </p>
                    <p align="center"><strong>This contact form is not working yet and is currenlty being tested<br />
                    </strong></p>
                  </div>
              </div>              </td>
            </tr>
          </table></td>
          <td width="23" align="left" valign="top">&nbsp;</td>
        </tr>
       
       
      </table></td>
    </tr>
    <tr style='background-image:url("images/Footer.jpg");'>
      <td height="60" align="center" valign="top"><div>
        <h1 class="style5"><br />
          <br />
          Yusuf  Muhammad’s Industrial Design Portfolio  © Yusuf Muhammad 2008</h1>
      </div></td>
    </tr>
  </table>
   
   
  <script type="text/javascript">
  <!--
  var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
  //-->
  </script>
  </body>
  </html>
   
  1.   <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2.    <html xmlns="http://www.w3.org/1999/xhtml">
  3.     <head>
  4.     <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  5.     <title>Contact</title>
  6.     <style type="text/css">
  7.     <!--
  8.     body {
  9.         background-color: #CCCCCC;
  10.    }
  11.    #apDiv1 {
  12.        position:absolute;
  13.        left:69px;
  14.        top:29px;
  15.        width:234px;
  16.        height:29px;
  17.        z-index:1;
  18.    }
  19.    #apDiv2 {
  20.        position:absolute;
  21.        left:71px;
  22.        top:64px;
  23.        width:244px;
  24.        height:25px;
  25.        z-index:2;
  26.   }
  27.    -->
  28.    </style>
  29.    <style type="text/css">
  30.    <!--
  31.    .style4 {
  32.        font-family: Arial, Helvetica, sans-serif;
  33.        font-size: 9pt;
  34.    }
  35.    -->
  36.    </style>
  37.     
  38.    <style type="text/css">
  39.    <!--
  40.    #apDiv3 {
  41.        position:absolute;
  42.        left:80px;
  43.        top:297px;
  44.        width:864px;
  45.        height:25px;
  46.        z-index:1;
  47.    }
  48.    .style5 {
  49.        font-family: Arial, Helvetica, sans-serif;
  50.        font-size: 9pt;
  51.        font-style: normal;
  52.        vertical-align: baseline;
  53.        line-height: 6px;
  54.        color: #FFFFFF;
  55.    }
  56.    .style6 {font-family: Arial, Helvetica, sans-serif}
  57.    -->
  58.    </style>
  59.     
  60.     
  61.     
  62.    <style type="text/css">
  63.    <!--
  64.    .style12 {
  65.        font-size: 10pt;
  66.        font-family: Arial, Helvetica, sans-serif;
  67.    }
  68.    -->
  69.    </style>
  70.    <script src="Scripts/AC_RunActiveContent.js" type="text/javascript"></script>
  71.    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
  72.    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
  73.    <link href="SpryAssets/SpryMenuBarVertical.css" rel="stylesheet" type="text/css" />
  74.    </head>
  75.     
  76.    <body>
  77.    <table width="920" border="0" align="center" cellpadding="0" cellspacing="0">
  78.      <tr style='background-image:url("images/Header.jpg");'>
  79.        <td height="85">&nbsp;</td>
  80.      </tr>
  81.      <tr align="center" valign="top" style='background-image:url("images/content.jpg");'>
  82.        <td height="188"><table width="919" border="0" cellpadding="0" cellspacing="0">
  83.          <tr align="center">
  84.            <td width="10" height="433" valign="top">&nbsp;</td>
  85.            <td width="104" align="left" valign="top"><table width="84" border="0" align="center" cellpadding="0" cellspacing="0">
  86.              <tr>
  87.                <td height="123"><ul id="MenuBar1" class="MenuBarVertical">
  88.                  <li><a href="index.html" class="style4">About Me</a> </li>
  89.                  <li><a href="#" class="MenuBarVertical style4">Portfolio</a>
  90.                      <ul>
  91.                        <li><a href="Ctrlaltdelete.html" class="style4">Ctrl-alt-delete</a></li>
  92.                        <li><a href="wordsplus.html" class="style4">Words Plus</a></li>
  93.                        <li><a href="Panicescape.html" class="style4">Panic Escape</a></li>
  94.                        <li><a href="greenriders.html" class="style4">Green Riders</a></li>
  95.                        <li><a href="frogchair.html" class="style6">Frog Chair</a></li>
  96.                        <li><a href="shoedesign.html" class="style4">Shoe Design</a></li>
  97.                        </ul>
  98.                  </li>
  99.                  <li><a href="cv.html" class="style4">Skills &amp; CV</a> </li>
  100.                 <li><a href="contact.html" class="style4">Contact</a></li>
  101.               </ul></td>
  102.             </tr>
  103.             <tr>
  104.               <td>&nbsp;</td>
  105.             </tr>
  106.             <tr>
  107.               <td>&nbsp;</td>
  108.             </tr>
  109.           </table></td>
  110.           <td width="12" valign="top">&nbsp;</td>
  111.           <td width="770" align="left" valign="top"><table width="761" border="0" align="left" cellpadding="0" cellspacing="0">
  112.             <tr align="left" valign="top">
  113.               <td height="421" align="left" valign="top"><div class="style4">
  114.                   <div align="justify">
  115.                     <p class="style12"><strong class="style6">CONTACT:</strong><br />
  116.                       Email: <a href="mailto:info@yusufm.com"><img src="images/image2.png" width="125" height="21" border="0" align="absmiddle" /></a><br />
  117.                       Feel free to contact me with any   inquires about freelance work, questions or comments.</p>
  118.                     <p align="center">
  119.                       <script type="text/javascript">
  120.   AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','300','height','302','title','form','src','Library/Contact form','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','Library/Contact form' ); //end AC code
  121.                       </script>
  122.                       <noscript>
  123.                       <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0" width="300" height="302" title="form">
  124.                         <param name="movie" value="Library/Contact form.swf" />
  125.                         <param name="quality" value="high" />
  126.                         <embed src="Library/Contact form.swf" quality="high" pluginspage="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" type="application/x-shockwave-flash" width="300" height="302"></embed>
  127.                       </object>
  128.                       </noscript>
  129.                     </p>
  130.                     <p align="center"><strong>This contact form is not working yet and is currenlty being tested<br />
  131.                     </strong></p>
  132.                   </div>
  133.               </div>              </td>
  134.             </tr>
  135.           </table></td>
  136.           <td width="23" align="left" valign="top">&nbsp;</td>
  137.         </tr>
  138.        
  139.        
  140.       </table></td>
  141.     </tr>
  142.     <tr style='background-image:url("images/Footer.jpg");'>
  143.       <td height="60" align="center" valign="top"><div>
  144.         <h1 class="style5"><br />
  145.           <br />
  146.           Yusuf  Muhammad’s Industrial Design Portfolio  © Yusuf Muhammad 2008</h1>
  147.       </div></td>
  148.     </tr>
  149.   </table>
  150.    
  151.    
  152.   <script type="text/javascript">
  153.   <!--
  154.   var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
  155.   //-->
  156.   </script>
  157.   </body>
  158.   </html>
  159.    


I put both the mailer php and contact form in a subfolder and the mailer php code is below:

Code: [ Select ]
  <?
     
    // read the variables form the string, (this is not needed with some servers).
    $subject = $_REQUEST["subject"];
    $message = $_REQUEST["message"];
    $sender = $_REQUEST["sender"];
     
     
    // include sender IP in the message.
   $full_message = $_SERVER['REMOTE_ADDR'] . "\n\n" . $message;
   $message= $full_message;
    
   // remove the backslashes that normally appears when entering " or '
   $message = stripslashes($message);
   $subject = stripslashes($subject);
   $sender = stripslashes($sender);
    
   // add a prefix in the subject line so that you know the email was sent by online form
   $subject = "Contact form". $subject;
    
   // send the email, make sure you replace "email@yourserver.com" with your email address
   if(isset($message) and isset($subject) and isset($sender)){
       mail("info@yusufm.com", $subject, $message, "From: $sender");
   }
   ?>
  1.   <?
  2.      
  3.     // read the variables form the string, (this is not needed with some servers).
  4.     $subject = $_REQUEST["subject"];
  5.     $message = $_REQUEST["message"];
  6.     $sender = $_REQUEST["sender"];
  7.      
  8.      
  9.     // include sender IP in the message.
  10.    $full_message = $_SERVER['REMOTE_ADDR'] . "\n\n" . $message;
  11.    $message= $full_message;
  12.     
  13.    // remove the backslashes that normally appears when entering " or '
  14.    $message = stripslashes($message);
  15.    $subject = stripslashes($subject);
  16.    $sender = stripslashes($sender);
  17.     
  18.    // add a prefix in the subject line so that you know the email was sent by online form
  19.    $subject = "Contact form". $subject;
  20.     
  21.    // send the email, make sure you replace "email@yourserver.com" with your email address
  22.    if(isset($message) and isset($subject) and isset($sender)){
  23.        mail("info@yusufm.com", $subject, $message, "From: $sender");
  24.    }
  25.    ?>


Any help or advise would be greatly appreciated

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 126 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.