372 posts
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Sold between 1 000 and 5 000 dollars
  • Sweden
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
  • Beta Tester
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Referred between 10 and 49 users
  • Sold between 5 000 and 10 000 dollars
  • United States
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 between 1 000 000 - 1 999 999 dollars
  • Power Elite Author
  • Most Wanted Bounty Winner
  • Bought between 500 and 999 items
  • Referred between 500 and 999 users
  • Interviewed on the Envato Notes blog
  • Envato Studio (Microlancer) Beta Tester
  • Won a Competition
+8 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
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Sold between 1 000 and 5 000 dollars
  • Sweden
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.

707 posts
  • Sold between 10 000 and 50 000 dollars
  • Referred between 10 and 49 users
  • Bought between 10 and 49 items
  • Has been a member for 5-6 years
  • Exclusive Author
  • Envato Studio (Microlancer) Beta Tester
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

2965 posts
  • Football Contest Participant/Runner-up
  • Australia
  • Community Moderator
  • Elite Author
  • Author had a Free File of the Month
  • Most Wanted Bounty Winner
  • Author had a File in an Envato Bundle
  • Has been a member for 5-6 years
  • Contributed a Blog Post
+11 more
dtbaker Volunteer 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
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 5-6 years
  • Sold between 1 000 and 5 000 dollars
  • Sweden
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
  • United States
  • Attended a Community Meetup
  • Author had a Free File of the Month
  • Bought between 50 and 99 items
  • Repeatedly Helped protect Envato Marketplaces against copyright violations
  • Has been a member for 5-6 years
  • Contributed a Tutorial to a Tuts+ Site
  • Contributed a Blog Post
+4 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 :)
2965 posts
  • Football Contest Participant/Runner-up
  • Australia
  • Community Moderator
  • Elite Author
  • Author had a Free File of the Month
  • Most Wanted Bounty Winner
  • Author had a File in an Envato Bundle
  • Has been a member for 5-6 years
  • Contributed a Blog Post
+11 more
dtbaker Volunteer 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 between 1 000 000 - 1 999 999 dollars
  • Power Elite Author
  • Most Wanted Bounty Winner
  • Bought between 500 and 999 items
  • Referred between 500 and 999 users
  • Interviewed on the Envato Notes blog
  • Envato Studio (Microlancer) Beta Tester
  • Won a Competition
+8 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 :)

by
by
by
by
by
by