TFPtMaster Posted July 2, 2015 Share Posted July 2, 2015 Hello guys I've created a new form to allow my clients to suggest products. This is my mail.php: <?php require(dirname(__FILE__).'/config/config.inc.php'); global $cookie; $name = $_POST['name']; $email = $_POST['email']; $recipient = "[email protected]"; Mail::Send(intval($cookie->id_lang), 'montemplate', $name , $email, $recipient, NULL, NULL, NULL, NULL, NULL, 'mails/'); ?> theni added some lines to cms.tpl {if $cms->id==17} <form style="border: 1px solid rgb(118, 118, 118); padding: 19px;" action="/mail.php" method="POST"> <p style="background-color: rgb(234, 234, 234); font-size: 15px; padding: 9px;">FORMULAIRE DEMANDE PRODUIT</p> <p>Votre nom</p> <input type="text" name="name" required> <p>Votre email (si vous souhaitez une réponse)</p> <input type="text" name="email"> <p>Website</p> <input type="text" name="website"> <p>Message</p><textarea name="message" rows="6" cols="25"></textarea><br /> <input type="submit" value="Envoyer"><input type="reset" value="Reset" required> </form>{/if} the problem i don't know how to add the values to my mail.html Can someone help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now