Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Frakass.jsx
Accessibilité
Commits
90199e12
Commit
90199e12
authored
Jan 22, 2022
by
QuentiumYT
Browse files
Write contact info to a file
parent
077c11d2
Changes
2
Hide whitespace changes
Inline
Side-by-side
contact.php
View file @
90199e12
...
...
@@ -15,7 +15,10 @@ if (isset($_POST['nom'])) {
$subject
=
"Contact de
$nom
$prenom
"
;
// set the email body
$body
=
"Nom:
$nom
\n\n
Prénom:
$prenom
\n\n
Email:
$email
\n\n
Téléphone:
$tel
\n\n
Message:
\n
$message
"
;
$body
=
"Nom:
$nom
\n
Prénom:
$prenom
\n
Email:
$email
\n
Téléphone:
$tel
\n
Message:
$message
"
;
// write content to a file
file_put_contents
(
'data/contact.txt'
,
$body
.
PHP_EOL
.
PHP_EOL
,
FILE_APPEND
|
LOCK_EX
);
// send the email
// $success = mail($recipient, $subject, $body);
...
...
data/contact.txt
0 → 100644
View file @
90199e12
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment