Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I have built a custom html/javascript form that I would like to incorporate into my blog. I would like the submit button of the form to send the information to a specific email address. Is there a way I can add that into the html of the form, or is it going to require an outside php file? And if an outside file is needed, please let me know what I need to do.

I have little experience with php, so very clear, basic answers would be much appreciated.

share|improve this question
    
This really isn't a WordPress issue. You might want to check out how page templates work. codex.wordpress.org/Pages#Page_Templates –  Brian Fegter Feb 4 '12 at 3:09
    
I would look at specific plugins which require no coding what so ever. Gravity Forms would be my suggestion. –  Cristian Feb 4 '12 at 9:48

1 Answer 1

I would handle this with Page Templates, as hinted at by @BrianFegter. Create a page template that does what you need (there are many PHP/WordPress tutorials out there on how to create pages, process forms, and output data). Once you have your template, create a page, and apply that template to it. Voilà, form processing. The best way to do this, imo, is to send the form to the current page, and have the page check for the $_POST data at the beginning of the load (before you output a form) and either do the processing there or output the form if no data is detected.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.