thanks for the help laserlight
i have another problem. i want to send an email to some people when a new entry has been added to the database. i would like an email to be created once the submit button has been pressed. i first tried an IF statement. this is what i tried:
if ('submit'){
echo "mailto:yourname@email.com";
}
but this echoed the text. then i remembered about a href but then i would have to add text so it would be like a hyperlink and that is something which i do not want.
i looked up mailto in PHP, and i came across sending emails without a link which was what i was looking for but it mentions that i can only be placed as a header.
<?php
header("Location: mailto:name@example.com");
?>
is there anyway i can get the email to appear by only clicking on the submit button.
Thanks