Joomla! Contact form inside an article, can't get action php file working -


i'm trying create contact form on own. noticed can achieved placing form inside article, instead of custom html module.

in client side, seems work. added captcha manually (the re-captcha plugin doesn't seem work me). problem is, set form's action property "mail.php", , added "mail.php" file the template root. "mail.php" supossedly retrieves data send post, , composes , sends email, showing "message send" notification.

anyway, when click on submit, form page reloaded. guess joomla! can't find "mail.php". guess issue related joomla structure , inability place "mail.php". wellcome.

this how article looks (wysiwyg editor mode disabled):

<form action="mail.php" method="post" target="_blank"> <p><label for="nombre">nombre:</label></p> <p><input maxlength="50" name="nombre" size="30" type="text" /></p> <p><label for="email">email:</label></p> <p><input maxlength="50" name="email" required="required" size="30" type="text" /></p> <p><label for="asunto">asunto:</label></p> <p><input maxlength="150" name="asunto" size="30" type="text" /></p> <p><label for="mensaje">mensaje:</label></p> <p><textarea cols="50" maxlength="700" name="mensaje" required="required" rows="8"></textarea></p> <div class="g-recaptcha" data-sitekey="6lefblahblahblahblah"> </div> <p><input type="submit" /></p> </form> 


Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -