Results 1 to 4 of 4

Thread: No PHP in HTML
      
   

  1. #1
    Join Date
    Jul 2007
    Posts
    27

    Default 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.

  2. #2
    Tom vR's Avatar
    Tom vR is offline Brigadier General
    Join Date
    Apr 2007
    Location
    Centurion, South Africa
    Posts
    1,733

    Default 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.

  3. #3
    Join Date
    Jul 2007
    Posts
    27

    Default 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?

  4. #4
    Tom vR's Avatar
    Tom vR is offline Brigadier General
    Join Date
    Apr 2007
    Location
    Centurion, South Africa
    Posts
    1,733

    Default 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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49