# Contact Form

**URL:** https://forum.kirupa.com/t/contact-form/171978
**Category:** Uncategorized
**Created:** [December 9, 2005, 6:28pm UTC](https://forum.kirupa.com/t/contact-form/171978 "2005-12-09T18:28:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Force34](https://avatars.discourse-cdn.com/v4/letter/f/57b2e6/32.png) [@Force34](https://forum.kirupa.com/u/Force34)
#### Post date: [December 9, 2005, 6:28pm UTC](https://forum.kirupa.com/t/contact-form/171978/1 "2005-12-09T18:28:10Z")

</div>

heylo

ok well have a look at the site 1st. [http://www.apdz.com/liquid/main.html](http://www.apdz.com/liquid/main.html)  
it doesnt work in opera though… I didn’t design it. It’s not finished  
either. If you have a look at the contact page you can see that the  
contact form sends even if all the fields aint filled in which is bad  
since we could get a lot of spam… so is there a way of making it so that  
all the fields have to be filled before the form can be sent? Heres the  
php involved -

\<?

```
$to = "force@apdz.com";
$msg = "$name

```

";  
$msg .= "$message

";

mail($to, $subject, $msg, "From: My web site  
Reply-To: $email  
");

?\>

Heres the actionscipt that is involved… it might help… don’t know

on (release) {  
if (name eq “” or subject eq “” or message eq “” or email eq “”) {  
stop();  
} else {  
loadVariablesNum(“form.php”, 0, “POST”);  
gotoAndStop(2);  
}  
}

^^ that stuff is whats assigned to the send button. So any ideas? Or do you have a better idea?
