Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
dca_mailto_form (simple email form)
Available (zip file) here.
This plugin will generate a simple email feedback form, ideal for yoursite.com/contact. Available for the moment only in English.
<txp:dca_mailto_form email="you
there.com” />@
text*
Offline
#2 2004-04-19 14:03:43
- mapu
- Member
- From: Munich, Germany
- Registered: 2004-03-16
- Posts: 141
Re: dca_mailto_form (simple email form)
Simple, but very useful! Thx!
Offline
Re: dca_mailto_form (simple email form)
Nice for lazy guys, like me!. Thanks.
Pedro Palazón
http://kusor.net http://kusor.com
Offline
Re: dca_mailto_form (simple email form)
What happens on the backend with this plug-in? After I hit submit, is it plugin or native code that takes the form input and sends the email? The reason I ask is that the forms seems to have an action of just 'index.php'.
VC#72, waiting patiently for /section/category/article-title/ based URLs :)
Offline
Re: dca_mailto_form (simple email form)
Wonderful plugin, and it works quite well, however, I did notice one thing, as I was setting up a contact page and reworking my site: If I try to validate CSS on the page containing the contact form, I recieve the following error.
Line 48: Property margin-below doesn’t exist : 1em
If I view the source on the contact page, it looks like the plugin div styles the textarea, with a property value of margin-below:1em; Now I’m fairly sure this should be margin-bottom:1em; but I cannot for the life of me figure out where to correct this. The editable area under the plugin tab doesn’t show this at all, and trying to edit the plugin text file just returns a string of characters.
Offline
Re: dca_mailto_form (simple email form)
Thanks a lot, great plugin.
Only: Would it be possible to make a kind of: “Your message has been sent. Thanks!”, including sending a kind of confirmation to the sender?
Hm, seem to have made al little syntax mistake down there. I cannot edit it, sorry.
Last edited by Kossatsch (2004-04-20 09:32:01)
Offline
Re: dca_mailto_form (simple email form)
Hm, doesn’t work. Makes a kind of the following code.
<pre><form method=“post” action=”/index.php”>
<p>Name<br /><input type=“text” name=“sender_name” value=”“ /></p>
<p>Email<br /><input type=“text” name=“sender_email” value=”“ /></p>
<p>Subject<br /><input type=“text” name=“sender_subject” value=”“ /></p>
<p>Message<br /><textarea name=“message” cols=“1” rows=“1”
style=“height:300px;width:300px;margin-below:1em;”></textarea></p>
<p><input type=“submit” name=“send” value=“Send” /></p>
</form><br /></pre>
<txp:dca_mailto_form email="youthere.com" />
Of course, I put my adress into the field above.
Any suggestions?
Offline
Re: dca_mailto_form (simple email form)
> Line 48: Property margin-below doesn
text*
Offline
Re: dca_mailto_form (simple email form)
Thank you Dean! Changing it to margin-bottom worked like a charm, validates perfectly!
Offline
Re: dca_mailto_form (simple email form)
Thanks alot.
How about adding something to prevent from sending an empty message? If the name is filled in, the email will still be sent even though the rest of the inputs are empty.
Last edited by ThrokFeroth (2004-04-24 13:44:51)
Offline
Re: dca_mailto_form (simple email form)
Small little error
for use of the plugin it says:
<:txp:dca_mailto_form email=“your@email.address”/>
should say
<txp:dca_mailto_form email=“your@email.address”/>
otherwise great stuff.
Offline