So I have a small generator that adds content to a config.php file but I also want to to send an email to the recipient.
Can you please help me.
Here is the generator code:
And here si the config:
I need a command code when the generator.php is submitted it will also send a email.html with the $date1 details and so on.
Can anyone help? rep and thanks given even a quick $
Can you please help me.
Here is the generator code:
PHP:
<?php
if (isset($_POST["Submit"])) {
$string = '<?php $date1 = "'. $_POST["date1"]. '";$email2 = "'. $_POST["email2"]. '";$email1 = "'. $_POST["email1"]. '";?>';
$fp = fopen("config.php", "w");fwrite($fp, $string);fclose($fp);
}
?><style type="text/css"><!--.style1 {color: #000000}--></style>
<form action="" method="post" name="install" id="install">
And here si the config:
PHP:
<?php $date1 = "";$email2 = "";$email1 = "";?>
Can anyone help? rep and thanks given even a quick $