Create simple form in the fields of Name, Email, Mobile, Address and Product Count and amount.
Now, Fetch submitted Time and Date with country wise using PHP
submitting the form data to the server.
isset($_POST['submit'])
get values submitted via HTTP POST method.
While submitting form, Inject the current date and time in hidden type
Next step, Send values in Mail using php mailto function
PHP mail() function is used to send email in PHP. You can send text message, html message and attachment with message using PHP mail() function.
mailto(to, subject, header, message);
When you send a text message using PHP then all the content will be treated as simple text. Even if you will include HTML tags in a text message, it will be displayed as simple text and HTML tags will not be formatted according to HTML syntax.
Adding simple css for styling..
Github : https://github.com/erajamanickam/product-enquire-php-with-mail
Demo : https://erajaman.000webhostapp.com/product-enquire/
Youtube : https://www.youtube.com/watch?v=M_ByzcrmHjQ
Top comments (0)