The following warnings occurred: | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Warning [2] Undefined array key "allowautourl" - Line: 584 - File: inc/class_parser.php PHP 8.1.31 (Linux)
|
Tip: Mailform component - Printable Version +- GetSimple Support Forum (http://get-simple.info/forums) +-- Forum: GetSimple (http://get-simple.info/forums/forumdisplay.php?fid=3) +--- Forum: Scripts & Components (http://get-simple.info/forums/forumdisplay.php?fid=11) +--- Thread: Tip: Mailform component (/showthread.php?tid=7051) |
Tip: Mailform component - tuxy - 2015-01-22 Hello, I made a simple mailform incl. a simple Anti-Spam function in a component. The form (html) is optimized for bootstrap, but you can customize for your own projects - Add this code in a component (ex. <?php get_component('mailform'); ?>) : PHP Code: <form action="<?php echo $_SERVER['PHP_SELF']; ?>" id="contactForm" method="post"> I hope this is useful for someone?? You can place this form(component) where you want in your template. Sorry for my bad english Regards, Christophe RE: Tip: Mailform component - shawn_a - 2015-01-22 vulnerable to email header injection. http://en.wikipedia.org/wiki/Email_injection ( also i changed to php code tags for highlighting ) RE: Tip: Mailform component - tuxy - 2015-01-22 (2015-01-22, 07:21:48)shawn_a Wrote: vulnerable to header injection. Hi @shawn_a, Thats better with the tag highlighting. I don't know how can make the script more security. I'm not a programmer, only a hobbyist. Feel free to modify the script for a better security, so i also learn Regards, Christophe RE: Tip: Mailform component - shawn_a - 2015-01-22 sanitation is hard even for the experts. RE: Tip: Mailform component - tuxy - 2015-01-22 (2015-01-22, 07:58:29)shawn_a Wrote: sanitation is hard even for the experts. Ah OK RE: Tip: Mailform component - shawn_a - 2015-01-22 There is some basic str replacers out there but they might strip content as well so its a hard balance. |