# Regarding mail form in html file

**URL:** <https://forum.kirupa.com/t/regarding-mail-form-in-html-file/132298>\
**Category:** Uncategorized\
**Created:** [December 26, 2004, 2:36pm UTC](https://forum.kirupa.com/t/regarding-mail-form-in-html-file/132298 "2004-12-26T14:36:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nydr](https://avatars.discourse-cdn.com/v4/letter/n/65b543/32.png) [@nydr](https://forum.kirupa.com/u/nydr)\
**Post date:** [December 26, 2004, 2:36pm UTC](https://forum.kirupa.com/t/regarding-mail-form-in-html-file/132298/1 "2004-12-26T14:36:32Z")

</div>

I have my mail form code in the .html file with the form itself and in the action of the form i have action="\<? echo($PHP\_SELF) ?\>" so that it uses the php from the file for the script.  
But when someone goes to that page it runs through the mail form and sends a mail to the email address. Do I use isset function for things like this? Do I use an if statement with submit i tried that and it didn’t work.
