# Flash and formbuddy

**URL:** <https://forum.kirupa.com/t/flash-and-formbuddy/321534>\
**Category:** Uncategorized\
**Created:** [April 22, 2011, 5:33am UTC](https://forum.kirupa.com/t/flash-and-formbuddy/321534 "2011-04-22T05:33:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![glassfairy](https://avatars.discourse-cdn.com/v4/letter/g/b9bd4f/32.png) [@glassfairy](https://forum.kirupa.com/u/glassfairy)\
**Post date:** [April 22, 2011, 5:33am UTC](https://forum.kirupa.com/t/flash-and-formbuddy/321534/1 "2011-04-22T05:33:29Z")

</div>

someone plz guide

the code given by form buddy is

```auto

<form action="http://www.formbuddy.com/cgi-bin/form.pl" method="post">
<input type="hidden" name="username" value="myformbuddyusername">
<input type="hidden" name="reqd" value="0">
<input type="hidden" name="url" value="mysiteaddress">

<table border="0">
<tr>
<td align="right"><b>Name:</b>
<td><input type="text" name="visitor_name" size="36" maxlength="100">
</tr>
<tr>
<td align="right"><b>E-Mail:</b>
<td><input type="text" name="e-mail" size="36" maxlength="100">
</tr>
</table>

<p><b>Comments/Suggestions</b>
<br><textarea name="comments" rows="5" cols="36">
</textarea>
<p><input type="submit" value="Submit Form"><input type="reset" value="Reset Form">
</form>

```

the form i made in flash with same files and the code in it i used is

```auto

Name.tabIndex = 1;
Email.tabIndex = 2;
Message.tabIndex = 3;

var senderLoad:LoadVars = new LoadVars();

sender.onRelease = function() 
{
                        set variable username="myformbuddyusername";
            set variable url= "mysiteaddress";
            senderLoad.visitor_name = Name.text;
            senderLoad.e-mail = Email.text;
            senderLoad.Message = Message.text;
            senderLoad.send("http://www.formbuddy.com/cgi-bin/form.pl", "_self", "POST");

}

```

but then using this above code in flash gives me syntax error at the  
_set variable username=“myformbuddyusername”;_.  
plz guide. how do i get it to work
