PDA

View Full Version : cold fusion mail form


tfolck
05-09-2002, 06:02 AM
Hello,

I"m making an email form in flash, when the user clicks send, it sends it to an email address..

Here's the problem, the mail form on my server uses cold fusion, I have no idea on what to write for flash to pass the form info to cold fusion to be mailed.

Below is the code for the form in html format:

<body bgcolor="#FFFFFF">
<form method="post" action="formmail.cfm">
<table width="42%" border="0" cellspacing="4" cellpadding="0">
<tr>
<td colspan="2"><font face="Arial, Helvetica, sans-serif" size="2">Form
Submission using &lt;CF_FORMMAIL&gt;</font></td>
</tr>
<tr>
<td width="38%">&nbsp;</td>
<td width="62%">&nbsp;</td>
</tr>
<tr>
<td height="31" width="38%"><font face="Arial, Helvetica, sans-serif" size="2">Name</font></td>
<td height="31" width="62%">
<input type="text" name="Name">
</td>
</tr>
<tr>
<td height="31" width="38%"><font face="Arial, Helvetica, sans-serif" size="2">Email</font></td>
<td height="31" width="62%">
<input type="text" name="Email">
</td>
</tr>
<tr>
<td width="38%" valign="top"><font face="Arial, Helvetica, sans-serif" size="2">Comments</font></td>
<td width="62%">
<textarea name="Comments" cols="30" rows="7"></textarea>
</td>
</tr>
<tr>
<td width="38%">&nbsp;</td>
<td width="62%">&nbsp;</td>
</tr>
<tr>
<td width="38%">&nbsp;</td>
<td width="62%">
<input type="submit" name="Submit" value="Ask">
<input type="reset" name="Submit2" value="Reset">
</td>
</tr>
</table>
</form>

tg
05-09-2002, 09:02 PM
start with this:

in flash:
recreate all the fields found on the html form(name, email, comments).
then put on two buttons: clear (to clear all your fields), and submit (to submit the form).
on the submit button put this code:

on(release){
loadvariables("formmail.cfm","","POST");
}


this should work for you. the html page with the form just fires off the formmail.cfm page when you hit submit.