PHP Problems

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

    • Nov 2007
    • 7

    PHP Problems

    I have made an Application form and a Thank You Page for my site and I have followed the Tutorials.

    But....

    It tells me that the PHP code should be there for me to change on my Thank you page but its not there when I goto Page HTML there is nothing for me to edit as far as putting in my Email.

    the File Extension is set on PHP.

    IDK what is wrong .

    Do I need to publish a page to get the PHP code ?
  • lemmondr
    Second Lieutenant

    • Sep 2007
    • 104

    #2
    Re: PHP Problems

    Conrad,

    Here's the entire PHP code..modify the blue to fit your needs:

    ---------------------------------------------------------------
    <?PHP
    $mailto = "email@yoursite.com";
    $email = $HTTP_POST_VARS['email'];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj = "Reservation request";
    $mailhead = "From: $email\n";
    reset ($HTTP_POST_VARS);
    $mailbody = "Values submitted from our Reservation Form:\n";
    while (list ($key, $val) = each ($HTTP_POST_VARS))
    {
    if ($key!="submit")
    {
    $mailbody .= "$key : $val\n";
    }
    }
    mail($mailto, $mailsubj, $mailbody, $mailhead);
    ?>

    ---------------------------------------------------------------
    Dan.

    Comment

    • navaldesign
      General & Forum Moderator

      • Oct 2005
      • 12080

      #3
      Re: PHP Problems

      The code is in the Forms tutorial, you need to read the entire threads (or at leat the entire 1st post) by scrolling down the page ) to see the full instructions and code. Anyway, lemmondr has copied it here for you.
      Navaldesign
      Logger Lite: Low Cost, Customizable, multifeatured Login script
      Instant Download Cart: a Powerfull, Customized, in site, DB driven, e-products Cart
      DBTechnosystems.com Forms, Databases, Shopping Carts, Instant Download Carts, Loggin Systems and more....
      Advanced BlueVoda Form Processor : No coding form processor! Just install and use! Now with built in CAPTCHA!

      Comment

      • Conrad L
        Private First Class

        • Nov 2007
        • 7

        #4
        Re: PHP Problems

        I figured that out thank you, Only issue I am having is it is telling me to publish the Form page, but my Site is not completely done yet.

        Change the form properties (in BlueVoda) to:

        Action: action.php
        Method: POST
        Encoding Type: multipart / form data.

        To accomplish this, double click on your form, and the following dialog box will appear:









        Just type in the above, as shown in the image.


        Save and publish.



        Should I publish it ?

        Comment

        • Andy128
          Major General

          • Dec 2005
          • 2317

          #5
          Re: PHP Problems

          The only way the form is going to work is if it is published.

          Andy
          PHP- is a blast!

          Comment

          • Conrad L
            Private First Class

            • Nov 2007
            • 7

            #6
            Re: PHP Problems

            if I publish individual pages can I link them up, Like link my form page to my Home page.

            Comment

            • Andy128
              Major General

              • Dec 2005
              • 2317

              #7
              Re: PHP Problems

              Not sure what you mean exactly. But, the short answer is yes. You can put a link on any page that will link to any other page.

              A little more info and maybe an example would help.

              Andy
              PHP- is a blast!

              Comment

              Working...
              X