No PHP in HTML

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Serenityenterprises
    Sergeant

    • Jul 2007
    • 27

    No PHP in HTML

    I just watched how to make a form video. I made the form and then proceeded to make the thank you page. I copied the html between heads in the box below but I cant find anything that says php or mail in the html. Please advise. I did everything I was suppose to according to the video.
  • Tom vR
    Brigadier General

    • Apr 2007
    • 1731

    #2
    Re: No PHP in HTML

    Just a few pointers:

    Remember to save your thank you page as action.bvp. In the Page HTML, open the Start of Page tab, then copy and paste the following code in there: (Edit the red text as required)

    <?PHP
    $mailto = me@myselfsite.com;
    $email = $HTTP_POST_VARS[email];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = "My Subject";
    $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);
    ?>

    There is no code in the Between Head Tag tab on the action page.

    In the page properties, you must set the file extension to php.
    Bless you
    Tom

    Comment

    • Serenityenterprises
      Sergeant

      • Jul 2007
      • 27

      #3
      Re: No PHP in HTML

      I did not save it as action.bvp. How do I rename pages? Also, about publishing. If I have 3 websites to be published to 3 different domains, when I click on publish what goes in the public_html folder?

      If my domain my is www.tyler.com, what would I put there to make it is loaded to the correct page?

      Lastly, I just signed up and built pages in voda site builder. Are voda and soho compatible, could i copy my pages into soho. why would one you chose one over the other?

      Comment

      • Tom vR
        Brigadier General

        • Apr 2007
        • 1731

        #4
        Re: No PHP in HTML

        Hey, I was busy doing a search to help finding something for another member, and stumbled onto this one which I've never answered.

        Did you ever come right with this? Sorry about that, if you see this reply.
        Bless you
        Tom

        Comment

        Working...
        X