Grow your CSS skills. Land your dream job.

Form Action HELP!

  • # August 12, 2009 at 3:11 pm

    Hey all,

    I just recently put up this site http://www.bigfootcanoerental.com/ a wordpress based site. I need to have the content form and the reservation form send all the information that is inputed by the user to send an e-mail in a nice clear format to my client.

    I know I have to put something in the "action" part of the code and maybe something in the cgi-bin to make this work <form action="#" method="post">

    The two page links are: http://www.bigfootcanoerental.com/contact/ and http://www.bigfootcanoerental.com/reservations/

    Any suggestions or help is greatly appreciated!

    Nick

    # August 12, 2009 at 3:34 pm

    It may be simpler if you use a WordPress plugin to handle your contact forms. For example: http://wordpress.org/extend/plugins/contact-form-7/

    Should save you the hassle of writing all of the code to process the form and send it yourself.

    # August 12, 2009 at 4:00 pm

    action just refers to "what page will i load when you hit submit"

    It is sometimes it self, some times it targets a another script

    action="" will post your form to it’s self and at the top of your page you would write something like

    Code:
    if(isset($_POST))
    {
    $name = $_POST['name'];
    ect….
    }

    This will run the code if some one clicks on submit….

    # August 12, 2009 at 5:17 pm
    "falkencreative" wrote:
    It may be simpler if you use a WordPress plugin to handle your contact forms. For example: http://wordpress.org/extend/plugins/contact-form-7/

    Should save you the hassle of writing all of the code to process the form and send it yourself.

    Can I use this with the existing code that I have set up for the form already and use the plug-in? I apologize, I’m not good with forms. WPCoder created this form page for me.

    Thanks!

    # August 12, 2009 at 6:28 pm

    If I understand correctly, you will have to rebuild the form using the WP Plugin within the confines of WP, and then you’d have to go in and style it to look the way it looks right now.

    # August 12, 2009 at 8:08 pm
    "xheathen" wrote:
    If I understand correctly, you will have to rebuild the form using the WP Plugin within the confines of WP, and then you’d have to go in and style it to look the way it looks right now.

    Is there anyway I can do it with the existing code thats already there?

    # August 13, 2009 at 12:49 pm

    have you got an action script??? like contact.php

    the action="contact.php" just set it all in motion, for example my action calls this exact thing, so it start the contact.php script and this is where the magic happens

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".