372 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
mrjasmin
says

Hi ! Im trying to integrate a simple contact form with my new wordpress theme, but with no luck.

I wonder what the form action=”” should be ?

I have tried this but it doesn´t work well.

action=”<?php echo htmlentities($_SERVER[‘REQUEST_URI’]); ?>”>

Thanks

426 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 10+ members
  • Has sold $5,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+3 more
vasilios
says

The action of a form could be the same page (””). This is usually the case if you have the processing on the same page. :)

922 posts
  • Power Elite Author: Sold more than $1M on Envato Market
  • Has sold $1M+ on Envato Market and is now a Power Elite Author
  • Won a competition
  • Made it to the Authors' Hall of Fame
+13 more
MDNW
says

It might sound like a cop-out, but I usually just use a plugin for contact forms and then recommend that users install a particular plugin… that way users get the full scope of the plugin benefits (customization, support, updates, etc.) without worrying about whether my particular contact form coding works for them. In cases where you are trying to fit a form into a non-standard space, this obviously isn’t the best solution though.

372 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
mrjasmin
says
It might sound like a cop-out, but I usually just use a plugin for contact forms and then recommend that users install a particular plugin… that way users get the full scope of the plugin benefits (customization, support, updates, etc.) without worrying about whether my particular contact form coding works for them. In cases where you are trying to fit a form into a non-standard space, this obviously isn’t the best solution though.

Ok thanks for the answer, I think that I will use a wordpress plugin.

709 posts
  • Has referred 10+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
  • Has collected 10+ items on Envato Market
+2 more
ChillThemes
says

I use a modified version of this: http://trevordavis.net/blog/tutorial/wordpress-jquery-contact-form-without-a-plugin/ with the email address controlled by backend options. It works nicely, and has a honeypot captcha

3425 posts
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
  • Won a competition
+15 more
dtbaker
Moderator
says

We just used this on our wordpress theme:

http://wordpress.org/extend/plugins/contact-form-7/

it was very easy to install, configure, and style.

and it does a nice little ajax hooveywhatsa when you press submit.

372 posts
  • Has been part of the Envato Community for over 6 years
  • Has sold $1,000+ on Envato Market
  • Has collected 10+ items on Envato Market
  • Sells items exclusively on Envato Market
+1 more
mrjasmin
says

I have tested all the wordpress plugins but I can´t get them to work. When I paste the shortcode into the page, nothing happends. What could possible be wrong ?

2541 posts
  • Has referred 10+ members
  • Has sold $100+ on Envato Market
  • Has collected 50+ items on Envato Market
  • Located in United States
+9 more
CreatingDrew
says
We just used this on our wordpress theme:

http://wordpress.org/extend/plugins/contact-form-7/

it was very easy to install, configure, and style.

and it does a nice little ajax hooveywhatsa when you press submit.
I also use and enjoy this plugin :)
3425 posts
  • Helps us moderate the forums
  • Has been part of the Envato Community for over 5 years
  • Helped several times protecting Envato Market against copyright violations
  • Won a competition
+15 more
dtbaker
Moderator
says
What could possible be wrong ?

try switching to the default wordpress theme (if it isn’t already selected) and see if the shortcode works.

922 posts
  • Power Elite Author: Sold more than $1M on Envato Market
  • Has sold $1M+ on Envato Market and is now a Power Elite Author
  • Won a competition
  • Made it to the Authors' Hall of Fame
+13 more
MDNW
says
We just used this on our wordpress theme:

http://wordpress.org/extend/plugins/contact-form-7/

it was very easy to install, configure, and style.

and it does a nice little ajax hooveywhatsa when you press submit.

I highly recommend contact form 7 as well – it’s what I use in all of my WP themes and I haven’t had a single issue with it. It’s SUPER customizable for users, and it’s the best plugin I’ve found for having multiple forms (including multiple destination addresses) within the same plugin. Check it out :)

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by