Jump to content

PHP Contact form in flash!


stupid girl!

Recommended Posts

Hi all forgive the silly question but very very new to php

 

i have created a contact form in flash for my website. On release 9in the actionscript) it calls for the form.php which looks something like this

 

<?

 

  $to = "[email protected]";

  $msg = "$name\n\n";

  $msg .= "$message\n\n";

 

  mail($to, $subject, $msg, "From: http://www.sowebdesign.com\nReply-To: $email\n");

 

?>

 

but when i try the form it doesnt submit to that email address

 

can anyne help please?

Link to comment
https://forums.phpfreaks.com/topic/61362-php-contact-form-in-flash/
Share on other sites

thanks guys for all that but tried all three actions and none worked!

 

the form.php reads<?

 

  $to = "[email protected]";

  $msg = "{$_RETRIEVE['name']}\n\n";

$msg .= "$_RETRIEVE['message']}\n\n";

 

  mail($to, $subject, $msg, "From: http://www.sowebdesign.com\nReply-To: $email\n");

 

?>

 

 

 

in the flash contact form the submit button has the following code

 

on (release) {

if (name eq "" or  email eq "" or query eq "" or message eq "" ) {

stop();

} else {

loadVariablesNum("form.php", 0, "POST");

gotoAndStop(2);

}

}

There is no such variable as $_RETRIEVE in php. Use...

 

<?php

   $to = "[email protected]";
   $msg = "{$_POST['name']}\n\n";
   $msg .= "{$_POST['message']}\n\n";

  mail($to, $subject, $msg, "From: http://www.sowebdesign.com\nReply-To: $email\n");

?>

 

oooooops  :-X

 

i meant $_REQUEST

 

sorry about that, my bad.

put in the code and not sure where its supposed to show what the flash is posting to

 

here is the source code of the page. sorry guys about this am totlaly new to php and obviously useless lol

 

<!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=ISO-8859-1" />

<meta name="Description" content="So Webdesign offers cost effect web design packages for all business typels. Free web Hosting and domain name with all packages. We can give the elegance and sophistication your business needs" />

 

<title>SO Web Design - Affordable web design solutions for your business</title>

<style type="text/css">

<!--

a:link {

color: #DEDEDE;

}

a:hover {

color: #CCCCCC;

}

body {

 

}

.style7 {color: #000000}

.style16 {font-family: Tahoma}

-->

</style></head>

 

<body>

<table width="901" height="696" align="center" cellpadding="0" background="background.gif">

  <tr>

    <td height="120" colspan="3"> </td>

  </tr>

 

  <tr>

    <td width="14" height="568"> </td>

    <td width="118" valign="top"><p>

      <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="118" height="260">

        <param name="movie" value="flash/menu.swf" />

        <param name="quality" value="high" />

        <embed src="flash/menu.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="118" height="260"></embed>

      </object>

    </p>

      <p> </p>

      <p><span class="style7">

        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="170" height="175" align="right">

          <param name="movie" value="frog.swf" />

          <param name="quality" value="high" />

          <embed src="frog.swf" width="170" height="175" align="right" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"></embed>

        </object>

      </span> </p></td>

    <td valign="top"><table width="632" align="center" cellpadding="0">

      <tr>

        <td width="626" height="50" valign="top"><div align="left"><img src="images/contact.gif" width="351" height="50" /></div></td>

        </tr>

      <tr>

        <td height="254" valign="top"><div align="justify">

          <div align="center">

            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="410" height="360">

              <param name="movie" value="form.swf" />

              <param name="quality" value="high" />

              <embed src="form.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="410" height="360"></embed>

            </object>

          </div>

          </div></td>

      </tr>

     

     

    </table></td>

  </tr>

</table>

</body>

</html>

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.