Can someone please tell me what i need to add to send the email, everything is there but the submit/send option ....Thank You
<?php
include("core.php");
include("config.php");
header("Content-type: text/html; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
echo "<head>";
echo "<title>$stitle</title>";
echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />";
echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>";
echo "</head>";
echo "<body>";
$wap_title=""; // Your Sites Name
$to = ""; // Your Email Address
if ($pass == "")
{
$title="Contact $wap_title";
}
else
{
$title="Thank You";
$msg .= "From:\n$name\n$email\n\nMessage:\n$message\n" ;
$subject = "WAP Enquiry\n";
$mailheaders = "From: $name<$email> \n";
$mailheaders .= "Reply-To: $name<$email>\n\n";
mail($to, $subject, $msg, $mailheaders);
print("<card id=\"thanks\" title= \"$title\" >");
print("<p align=\"center\">Thank You $name,
your Enquiry has been sent to $wap_title</p>");
print ("
<a href=\"http://site\">CONTINUE</a></p>");
print("</card>");
}
?>
<card id="contact" title="<? echo $title ?>">
<do type="accept" label="send">
<go method="post" href="<? echo "$PHP_SELF"; ?>">
<postfield name="name" value="$name"/>
<postfield name="email" value="$email"/>
<postfield name="message" value="$message"/>
<postfield name="pass" value="1"/>
</go>
</do>
Name
<input title="name" name="name"/>
Email
<input title="email" name="email"/>
Message
<input title="message" name="message"/>
</p>
</card>
</wml>
<?php
include("core.php");
include("config.php");
header("Content-type: text/html; charset=ISO-8859-1");
echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\" ?>";
echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";
echo "<head>";
echo "<title>$stitle</title>";
echo "<link rel=\"StyleSheet\" type=\"text/css\" href=\"style/style.css\" />";
echo "<meta http-equiv=\"Cache-Control\" content=\"no-cache\"/>";
echo "</head>";
echo "<body>";
$wap_title=""; // Your Sites Name
$to = ""; // Your Email Address
if ($pass == "")
{
$title="Contact $wap_title";
}
else
{
$title="Thank You";
$msg .= "From:\n$name\n$email\n\nMessage:\n$message\n" ;
$subject = "WAP Enquiry\n";
$mailheaders = "From: $name<$email> \n";
$mailheaders .= "Reply-To: $name<$email>\n\n";
mail($to, $subject, $msg, $mailheaders);
print("<card id=\"thanks\" title= \"$title\" >");
print("<p align=\"center\">Thank You $name,
your Enquiry has been sent to $wap_title</p>");
print ("
<a href=\"http://site\">CONTINUE</a></p>");
print("</card>");
}
?>
<card id="contact" title="<? echo $title ?>">
<do type="accept" label="send">
<go method="post" href="<? echo "$PHP_SELF"; ?>">
<postfield name="name" value="$name"/>
<postfield name="email" value="$email"/>
<postfield name="message" value="$message"/>
<postfield name="pass" value="1"/>
</go>
</do>
Name
<input title="name" name="name"/>
<input title="email" name="email"/>
Message
<input title="message" name="message"/>
</p>
</card>
</wml>
Comment