elin-r
9/14/2017 - 8:18 PM

carma_sendtrigger_form

carma_sendtrigger_form

<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>

<style type="text/css">
#button { background:#005298; display:inline-block; color:white; padding:7px; }
</style>	
	<title>TEST Carma Trigger mail</title>
</head>

<body>
	<form id="myid" method="post" action="phptestfile.php">
		<table>
			
		<tr>
			<td>id</td>
			<td><input type="text" name="originalId" value=""></td> 
			<!-- NOTE: Hidden, empty field!
			Will send multiple emails, if form is filled in multiple times, since no original id is specified.
			However, it will not add the same email address as multiple recipients in list(?). 
			Consider function to copy email field as originalid, or generete a random string. -->
		</tr>
													
		<tr>
			<td>email address</td>
			<td><input type="text" name="emailAddress" value=""></td>
		</tr>
			
		</table>
		<button>Skicka mail</button>
	</form>
	
</body>
</html>