Saving form data to database
Posted: Mon Oct 07, 2024 7:56 pm
Hi I want to save form data to a database, and have filled in the info on the "advanced" section, however, when the page is published, the script still has all the email info, eg
$mailto = '';
$mailfrom = isset($_POST['email']) ? $_POST['email'] : $mailto;
$subject = '';
$message = '';
Does the email info have to be completed/does the form have to be emailed as well as saved to the database? We have no need for the form to be sent by email.
Thanks.
$mailto = '';
$mailfrom = isset($_POST['email']) ? $_POST['email'] : $mailto;
$subject = '';
$message = '';
Does the email info have to be completed/does the form have to be emailed as well as saved to the database? We have no need for the form to be sent by email.
Thanks.