ok, I am using a newsletter system that my host has.
I have a form at http://www.decisionfacilitation.com/...onFormID=19678
which is given to me by the newsletter system.
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:exslt="http://exslt.org/common" xmlns:edyn="http://exslt.org/dynamic" xmlns:estr="http://exslt.org/strings" xmlns:admin="http://www.schlund.de/tinc/admin" xmlns:guest="http://www.schlund.de/tinc/guest" xmlns:menu="http://www.schlund.de/tinc/menu" xmlns:gen="http://www.schlund.de/tinc/general" xmlns:var="http://www.schlund.de/tinc/variables" xmlns:cpn="http://www.schlund.de/tinc/components" xmlns:dyn="http://www.schlund.de/tinc/dynpages" xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:SOAP-ENC="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pmtns="http://schemas.schlund.de/pmt">
<head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><link href="http://www.decisionfacilitation.com/spicons/tinc/oaoconfig_us/newsletter/style/index.css" rel="stylesheet" type="text/css" /></head>
<body>
<form action="http://www.decisionfacilitation.com/tinc" method="post" accept-charset="utf-8">
<input type="hidden" name="try" value="true" />
<input type="hidden" name="RegistrationFormID" value="19678" />
<div class="box">
<input type="hidden" name="key" value="YrUz9HAQ" />
<h1>Subscribe</h1>
<table cellpadding="2" cellspacing="1">
<tr class="message"><td colspan="2"><div>Please make sure all fields are filled in. Those marked with a star are mandatory.</div></td></tr>
<tr class="high mandatory"><td class="title">
E-mail:
<strong> *</strong></td><td><input type="text" name="EMail" class="text" size="15" value="" /></td></tr>
<tr class="low"><td class="title">
First name:
</td><td><input type="text" name="FirstName" class="text" size="15" value="" /></td></tr>
<tr class="high"><td class="title">
Last name:
</td><td><input type="text" name="Name" class="text" size="15" value="" /></td></tr>
<tr style="vertical-align:bottom"><td style="text-align:left"><a href="http://www.decisionfacilitation.com/tinc?key=CK8DcT9i&RegistrationFormID=19678">Unsubscribe</a></td><td colspan="2"><input type="submit" class="submit" style="float:right" value="Subscribe" /></td></tr>
</table></div></form>
</body>
</html>
Now the problem I have is that the system does not notify me when I have new subscribers.
So I want to setup a way that I get an email saying that some person with some email address just subscribed.
As far as I know, I would need to take the form and change it so that the data is passed to a script that would do the emailing for me and then continue the journey to tinc (whatever that is).
so if I change
Code:
<form action="http://www.decisionfacilitation.com/tinc" method="post" accept-charset="utf-8">
to
Code:
<form action="form.php" method="post" accept-charset="utf-8">
Then I just need to setup form.php
Code:
<?php
$email = $_REQUEST['EMail'] ;
$first = $_REQUEST['FirstName'] ;
$last = $_REQUEST['Name'];
$try = $_REQUEST['Name'];
$RegistrationFormID = $_REQUEST['RegistrationFormID'];
$key = $_REQUEST['key'];
$message = "name: " $first $last "\n email: " $email;
mail( "yourname@example.com", "New Subscriber",
$message, "From: $email" );
header( "Location: http://www.example.com/thankyou.html" );
?>
But all this data needs to be forwarded to tinc (which I still don't know what that is)
Bookmarks