# Sign up/newsletter problem

**URL:** <https://forum.kirupa.com/t/sign-up-newsletter-problem/265132>\
**Category:** Uncategorized\
**Created:** [July 4, 2008, 12:11pm UTC](https://forum.kirupa.com/t/sign-up-newsletter-problem/265132 "2008-07-04T12:11:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![marvinnr1](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@marvinnr1](https://forum.kirupa.com/u/marvinnr1)\
**Post date:** [July 4, 2008, 12:11pm UTC](https://forum.kirupa.com/t/sign-up-newsletter-problem/265132/1 "2008-07-04T12:11:29Z")

</div>

Hello,

I hope anyone can help me fix the following problem. I downloaded a newsletter, but it doesn’t work when I upload it on my server. I’m using a php server and everything is placed in the same directory. What I understood is that I need to make an adjustment in the php file.

my php code:

```php
<?php  

if (!eregi("^[_\.0-9a-z-]+@([0-9a-z][0-9a-z-]+\.)+[a-z]{2,3}$", $_GET["email"])) 
    { 
    print "error=invalid email"; 
    die(); 
    } 

$fp = fopen("emails.txt", "r");  
$content = fread($fp, filesize("emails.txt"));  
fclose($fp); 

if (eregi($_GET["email"], $content)) 
    { 
    print "error=duplicate email"; 
    die(); 
    } 

$fp = fopen("emails.txt", "a+");  
if (fwrite($fp, $_GET["email"]."
")) 
    print "status=ok";  
fclose($fp); 
?>

```

On my button i use this action script

```auto
on (release) {     
error = ""; loadVariablesNum("http://www.mydomainname.com/subscribe.php?email="+_root.email, 0, "GET"); }

```

I added the [fla](https://www.yousendit.com/download/TTdGeFVYcVh1YlBIRGc9PQ) file I’m using so maybe you can see where things go wrong.  
I hope you can help me.

---

<div class="post-metadata">

**Author:** ![marvinnr1](https://avatars.discourse-cdn.com/v4/letter/m/ce7236/32.png) [@marvinnr1](https://forum.kirupa.com/u/marvinnr1)\
**Post date:** [July 5, 2008, 6:03am UTC](https://forum.kirupa.com/t/sign-up-newsletter-problem/265132/2 "2008-07-05T06:03:18Z")

</div>

anyone… is it that difficult?
