JustSara
December 31st, 2002, 11:34 AM
Hello all and Happy Holidays. I have a Flash form set up on my website (and a sniffer thanks to you guys!) but for those few that don't have Flash I'd like to have a simple submit form using PHP. I went and bought a book about Dreamweaver which is pretty good but I'm confused. Also, my website is hosted on an ISP's website so I have very limited access to it.
In the book, for PHP email, it has this code:
<--!
<?php
$email_to = "me@me.com";
$email_subject = "This is the email\n";
$email_body = "Body text here!\n";
if (mail (@email_to, $email_subject, @email_body))
echo "Mail sent.";
else echo "Mail failed.";
?>
-->
I don't know what to do with this code. Do I put it on the page with my submit form? Is this supposed to be server side code? Any help will be much appreciated.
JustSara
In the book, for PHP email, it has this code:
<--!
<?php
$email_to = "me@me.com";
$email_subject = "This is the email\n";
$email_body = "Body text here!\n";
if (mail (@email_to, $email_subject, @email_body))
echo "Mail sent.";
else echo "Mail failed.";
?>
-->
I don't know what to do with this code. Do I put it on the page with my submit form? Is this supposed to be server side code? Any help will be much appreciated.
JustSara