# Flash & PHPList

**URL:** <https://forum.kirupa.com/t/flash-phplist/256569>\
**Category:** flash\
**Created:** [April 4, 2008, 4:41am UTC](https://forum.kirupa.com/t/flash-phplist/256569 "2008-04-04T04:41:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bostondesign](https://avatars.discourse-cdn.com/v4/letter/b/5fc32e/32.png) [@bostondesign](https://forum.kirupa.com/u/bostondesign)\
**Post date:** [April 4, 2008, 4:41am UTC](https://forum.kirupa.com/t/flash-phplist/256569/1 "2008-04-04T04:41:29Z")

</div>

Hey everyone,

So i have been at this for HOURS now im trying to get a sign up for to work in flash. One attrib which is email and simply sign up. Here is the code that i have at the moment, if ANYONE has any idea how to fix this i would really appreciate it. Thanks!

BD

on (release, keyPress “\<enter\>”) { if (emailad ne “”) {  
i = “0”;  
validmail = 0;  
while (Number(i)\<=Number(length(emailad))) {  
if (substring(emailad, i, 1) eq “@”) {  
validmail = 1;  
}  
i = Number(i)+1;  
}  
if (Number(validmail) == 0) {  
gotoAndStop(“no”);  
} else {

var my\_lv:LoadVars = new LoadVars();  
my\_lv.name = “subscribeform”;  
my\_lv.subscribe = “Subscribe”;  
this.my\_lv[“list[2]”] = “signup”;  
my\_lv.email = emailad;  
my\_lv.emailconfirm = emailad;  
my\_lv.sendAndLoad(“[http://www.mydomain.com/lists/?p=subscribe&id=2](http://www.mydomain.com/lists/?p=subscribe&id=2)”, my\_lv, “POST”);  
gotoAndStop(“submit”); } }  
}
