WordPress.org

Ready to get started?Download WordPress

Forums

Creating a Form within a page (2 posts)

  1. jbaartman
    Member
    Posted 1 year ago #

    How do I create a form that will submit to an external database, within a WordPress Page? I need my form to look very specific so a lot of the word press plugins are not very effective.

    Can I just copy and paste my html code that is required into the page? (In the HTML section of the page).

    The hidden input statements don't seem to be working. And they are taking up "real estate" space on the actual page even though they are supposed to be hidden.

    Can javascript also be included in the html part of a wordpress page?

  2. Can I just copy and paste my html code that is required into the page?

    While you "COULD"... I wouldn't. The first time you, or another user, accidentally switches the view on that page... BAM... it's probably going to mangle your form.

    It's much safer to go with a plugin that allows you to use php in your content areas. You'll define all the php for your form in the admin panel.. then enter a "snippet" into your content editor.. which will fire that php code at that point in your content.

    This is much better than putting the code directly into the html section of the editor.

    Here is a link to a php snippet plugin:
    http://wordpress.org/extend/plugins/php-snippets/

Topic Closed

This topic has been closed to new replies.

About this Topic