How to create an email system using php? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

How to create an email system using php?

how can i create a feedback form including the email element?

15th Aug 2017, 4:35 AM
Shadab Hussain
Shadab Hussain - avatar
4 Answers
+ 10
the second part: <!-- WWW.DEVBOOK.CZ --> <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Mailform</title> </head> <body> <p>You can contact me on the address below.</p> <?php if ($notice){ echo('<p>' . htmlspecialchars($notice) . '</p>'); } $name = (isset($_POST['name'])) ? $_POST['name'] : ''; $email = (isset($_POST['email'])) ? $_POST['email'] : ''; $message = (isset($_POST['message'])) ? $_POST['message'] : ''; ?> <form method="post"> <table> <tr> <td>Your name</td> <td><input name="name" type="text" value="<?= htmlspecialchars($name) ?>" /></td> </tr> <tr> <td>Your email</td> <td><input name="email" type="email" value="<?= htmlspecialchars($email) ?>" /></td> </tr> <tr> <td>Current year</td> <td><input name="year" type="number" /></td> </tr> </table> <textarea name="message"><?= htmlspecialchars($message) ?></textarea><br /> <input type="submit" value="Submit" /> </form> </body> </html>
19th Aug 2017, 10:36 PM
JaMi
JaMi - avatar
16th Aug 2017, 6:15 PM
Magdy Aboelmagd
Magdy Aboelmagd - avatar
- 1
it's showing checkEmail as error
19th Aug 2017, 12:36 PM
Shadab Hussain
Shadab Hussain - avatar