Switching from html pages to wordpress Help please with .php

Discussion in 'HTML & Website Design' started by Mysticwonton, Jul 31, 2009.

  1. #1
    Hello everyone, I'm switching my website www.earningonlinemoney.com over from regular .html files to wordpress. And on my contact us page and stuff on the .html files I used html <form> codes to put in the email forms.. and to make them work correctly I had to have a .php file in the public_html folder.

    So now that I'm adding wordpress I can still have my html form but where do I put the .php file that was in the public_html folder? I don't think it will work from there anymore.. so where do i put it?

    Or are there wordpress plugins for email forms that anyone knows about that are good? I got one plugin for email for but I don't know how to use it.. it has a readme that says how to make the form.. it gives you the code but it doesn't tell you where to put the code? hm.. it's in weird brackets like {email form}

    Well thanks in advance for any help guys.
     
    Mysticwonton, Jul 31, 2009 IP
  2. Stomme poes

    Stomme poes Peon

    Messages:
    3,195
    Likes Received:
    136
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You might want to post this in the Programming or Site and Server Administration section... where you put form code is likely dependent on your server setup.
     
    Stomme poes, Jul 31, 2009 IP
  3. risoknop

    risoknop Peon

    Messages:
    914
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Wordpress is a content management system and adding PHP code to posts is disallowed by default because of security reasons.

    You may:

    a) use some plugin with functionality you are after (or write your own plugin by using Wordpress API)
    b) use a plugin that allows you to insert PHP code into posts and do the PHP scripting right in the post above the form (I really don't recommend this)
    c) create a separate PHP file with the form and its processing (looking the same as the blog, with the same styling and layout) and link to it from your blog as if it were a page. Just make sure the URI to the file does not get rewritten if you are using .htaccess to rewrite your blog's URIs.

    And yeah, this is probably a wrong section for this kind of questions.
     
    risoknop, Jul 31, 2009 IP
  4. sarahk

    sarahk iTamer Staff

    Messages:
    28,956
    Likes Received:
    4,565
    Best Answers:
    124
    Trophy Points:
    665
    #4
    You can add forms if you write your own plugin and it's not hard but I've just added some complex forms to andrewking.co.nz using http://wordpress.org/extend/plugins/contact-form-7/ and if you have basic html (for the form layout) you can do reasonably complex forms and emails using it.
     
    sarahk, Aug 4, 2009 IP