I have a contact form on my website which is embeded into the.swf
Currently that form isn't setup to work. I have a working contact form
at
PHP Code below
------------
<?php session_start() ?>
<?
include "db_registrations.php";
// defaults
$name = "";
$email = "";
$city = "";
$comments= "";
$regtime= "";
if(isset($_POST['submit'])){
$name = substr(trim(strip_tags($_POST['name'])), 0, 100);
$email = substr(trim(strip_tags($_POST['email'])), 0, 100);
$city = substr(trim(strip_tags($_POST['city'])), 0, 100);
$comments = substr(trim(strip_tags($_POST['comments'])), 0, 1000);
$regtime = time();
$tdisplay = date("F j Y h:i", $regtime);
if($_SESSION["captcha"]==$_POST["captcha"])
{
//CAPTHCA is valid; proceed the message: save to database, send by e-mail ...
$query = "insert into contacts (name, email, city, comments, regtime) values ('$name', '$email', '$city', '$comments', '$regtime')";
$result = mysql_query($query) or die("Error: Query failed.<br /><br />$query<br /><br />" . mysql_error());
// mail to jean vallery
$to = "
[email protected]";
$subject = 'Contact Form Submitted (contactmedirectly.php)';
$message = '
------------
PHP code above
I would like to know how to write the ac 2.0 script to complete this process.
the form that isn't active is located at , in the menu mouseover contact
http://www.2453.net/mypersonalphotos/
I don't want to reinvent the wheel but learn how to write the AC script