Results 1 to 7 of 7

Thread: PHP Problems
      
   

  1. #1
    Conrad L is offline Private First Class
    Join Date
    Nov 2007
    Posts
    7

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

  2. #2
    lemmondr is offline Second Lieutenant
    Join Date
    Sep 2007
    Posts
    104

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

  3. #3
    navaldesign's Avatar
    navaldesign is offline General & Forum Moderator
    Join Date
    Oct 2005
    Location
    Italy
    Posts
    12,115

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


  4. #4
    Conrad L is offline Private First Class
    Join Date
    Nov 2007
    Posts
    7

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

  5. #5
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

    Default Re: PHP Problems

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

    Andy
    PHP- is a blast!

  6. #6
    Conrad L is offline Private First Class
    Join Date
    Nov 2007
    Posts
    7

    Default Re: PHP Problems

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

  7. #7
    Andy128's Avatar
    Andy128 is offline Major General
    Join Date
    Dec 2005
    Location
    Michigan
    Posts
    2,322

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

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