forms

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • joaocarloss
    Private First Class

    • Feb 2008
    • 5

    forms

    hi my id is 21650 and my name is Joao.
    i am having problems with the forms i am doing everything like in tutorials
    but in the last part where i go to page html in the thank you page doesn`t show up php code for mr to copy


    thanks
  • aussiebaz
    First Lieutenant

    • Jan 2007
    • 175

    #2
    Re: forms

    hI

    While you are in the first tutorial you will be told
    to scroll down the page and copy the html code.

    How to do:

    on the tutorial page scroll almost to bottom
    of the page and you will see some coding like this;
    <?PHP
    $mailto = "youremail@yourdomain.com";
    $email = $HTTP_POST_VARS['email'];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = "Type your mail subject here";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Values submitted from web site form :\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    if ($key!="submit")
    {
    $mailbody .= "$key : $val\n";
    }
    }
    mail($mailto, $mailsubj, $mailbody, $mailhead);
    ?>
    ===================================

    Copy and paste this code into your "thank you" page
    by right clicking anywhere on your page in the builder.

    click on "Page HTML" then you will see a box containing your
    html code for your page.

    Click on “Beginning of Body”,
    and paste the code in the window. Please note that you can paste the script code in Start of Page, Inside Body, Between head, practically ANYWHERE. We advise, however, Beginning of Page, for reasons that exceed this tutorial.


    While you have this window open, change the part in blue of the above code with your actual email address, and the actual Email Subject.

    Save your page as “action”. When it will be published, it will automatically be published as “action.php”.



    Hope this helps
    Barry

    Comment

    • swwratnx
      Private

      • Jan 2008
      • 4

      #3
      Re: forms

      Check this link. Maybe you can find the solution for your problem.



      I`m from Portugal and your name is João so maybe you speak portuguese. If you need aditional help, do not hesitate to contact me.

      Alexandre Freire
      alpafrei******.com

      Comment

      • abuelo
        Sergeant Major

        • Feb 2008
        • 88

        #4
        Re: forms

        i went through the exact same thing yesterday , if you do what aussibaz tells you it will work, the part you copy is in the written instructions right below the tutorial. good luck
        www.myvillagecarpenter.com

        Comment

        Working...
        X