WordPress.org

Forums

post_content (5 posts)

  1. skadnol
    Member
    Posted 2 years ago #

    Is it possible to have more than one name="post_content" on a form?

  2. Rebecca O'Brien
    Member
    Posted 2 years ago #

    No, you can't. One will override the other unless you're passing the content into a form array.

    Any reason why you'd want two?

  3. skadnol
    Member
    Posted 2 years ago #

    Hey Rebecca, thanks. The reason I want more than one field is becouse the users will input more than one field. The user will have to input from where he would like to go, To where he would like to go, the date, and time.

    But I want inputs to be formed and easy to use.

    Do you have any idea how would I implement that?

    I found a plugin Post from Site, which I think I will modify.

    If you have a better idea please tell me, thanks !

  4. Rebecca O'Brien
    Member
    Posted 2 years ago #

    Where is this form going? What's it doing?

    If you're going to be using it to create a posts, then look into Post Types.

    If this is some kind of form displayed to users on the frontend of the site, like a contact or suggestion form, you'd need a page template and a the form.

    <form method="POST">
     <input type="text" name="date_coming" />
     <input type="text" name="date_going"/>
     <input type="text" name="where_to" />
     // etc etc etc
    </form>
  5. skadnol
    Member
    Posted 2 years ago #

    Thanks, good one! But I now started to working by this tutorial:
    http://voodoopress.com/add-a-meta-box-to-use-custom-fields-on-front-end-post-form/

    I will do it with custom fields. I should have think of it before.

    Thanks anyways, be good!

Topic Closed

This topic has been closed to new replies.

About this Topic