Triggering a Form from a SWF

  • 1
  • Question
  • Updated 6 years ago
I have a flash programme I have written that wants to email me back some results from the users interaction with it. Normally I put an invisible form in the HTML and then a small bit of JavaScript is used to populate it and then the form call's a standard CGI Formmail script to email me.

Yola support say they can not support this feature for me and have sent me here for help.

HTML code I normally use below:

<script language="JavaScript">
function fSendForm(n,t,o,p,m,d){
var myForm = document.frmContact;
myForm.subject.value = "Life Cycle Results for " + n; = n; = t;
myForm.comments.value = o;
myForm.recipient.value = "";
myForm.redirect.value = "";
myForm.wheelData.value = d;
// -->

<BODY bgcolor="#FFFFFF" link="#FFFFFF" vlink="#FFFFFF" alink="#FFCC00" text="#FF6666">
<p><object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase=",0,0,0" width="500" height="500">
<param name=movie value="LC0026.swf">
<param name=quality value=high>
<embed src="LC0026.swf" quality=high pluginspage="" type="application/x-shockwave-flash" width="500" height="500">

<p><font face="Verdana, Arial, Helvetica, sans-serif" color="#0000FF" size="2">If
nothing appears above then <a href="" target="_blank"><font color="#0033FF">click
<!-- Replace the URL below with your servers address for the formail CGI script -->
<form name="frmContact" method="post" action="http://cgi-pub.yourISPdomain/cgi-bin/">
<input type="hidden" name="subject">
<input type="hidden" name="name">
<input type="hidden" name="email">
<input type="hidden" name="comments">
<input type="hidden" name="recipient">
<input type="hidden" name="redirect">
<input type="hidden" name="wheelData">

Photo of Kevin Boyd

Kevin Boyd

  • 10 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of Kevin Boyd

Kevin Boyd

  • 10 Posts
  • 0 Reply Likes
Actually just go this to almost fully work by using the HTML widget instead of the SWF widget. So now my SWF runs, calls the JavaScript function that populates the invisible form.

The bit I need know is how do I call the CGI Formmail script on the Yola server?
Photo of Gop


  • 7473 Posts
  • 2115 Reply Likes
Hi Kevin,

Users just don't have access to the Yola servers so you can't call this from Yola.
What you may be able to do though is use something like Create a form as appropriate and then identify the field names used for your input. Change the "names" used to match what jotform have called them and see if this will work?

Jotform give you access to the code used in the form markup.