Help

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

    • Jul 2007
    • 8

    Help

    I finally got my form to work. However I have two pages with forms. Therefore I created another thank you page and did it exactly the same way as the first.. This one does not work. Maybe you cant have two php. pages? Anyway maybe some kind soul can check out
    my site www.handdrawnportraitprogram.com. The page in question is called Presentation.

    Here is the code I entered on the new Thank you page
    <?PHP
    $mailto = Karen@handdrawnportraitprogram.com;
    $email = $HTTP_POST_VARS['email'];
    if ($email == "") {
    $email = $mailto;
    }
    $mailsubj =appointment;
    $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);
    ?>
    Attached Files
  • Andy128
    Major General

    • Dec 2005
    • 2317

    #2
    Re: Help

    If your question is why does the new one not reference the newly created thank you page- that is because you have both forms being processed by the one page "action.php" If you look at both forms- their action is set to action.php this basically says - take all the info from this form and process it with the action.php page.

    If you want it processed by another page- then you have to set the form action to another page that you create such as : action2.php
    Then create another thank you page and name it action2.php and then place the php script in that page as before. In this- you can have the presentation info sent to one email and the questions sent to another if you wish. Or they could go to the same one. Actually as you have it set right now- both forms will process with the same thank you page.

    Hope that helps

    Andy
    PHP- is a blast!

    Comment

    • navaldesign
      General & Forum Moderator

      • Oct 2005
      • 12080

      #3
      Re: Help

      Please also note that you have an error in your script:

      $mailsubj ="appointment\n";

      Please edit it or it won't work
      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

      • FairyDuster
        Private First Class

        • Jul 2007
        • 8

        #4
        Re: Help

        Thank you both very much. However my new problem is the submit button is locked on the bottom of page. I have moved it back to the right spot several times and re-published but it still goes to the bottom in preview mode.

        Comment

        • Andy128
          Major General

          • Dec 2005
          • 2317

          #5
          Re: Help

          Delete the submit button. Save -DO NOT PUBLISH

          Open the FTP Manager and connect. DELETE THE PAGE FROM THE SERVER

          Now stretch the form down just a little. Place the submit button back on the form. Save and publish.

          When opening the page in IE- hit F5 several times to make sure you are viewing a fresh copy of the page.

          Andy
          PHP- is a blast!

          Comment

          • navaldesign
            General & Forum Moderator

            • Oct 2005
            • 12080

            #6
            Re: Help

            Karen,

            as i told you in the emails i have sent you, the misplacing of the two buttons, of the Submit button, and of the bottom link, is due to the fact that the code you have placed in the html box in the right part of your page (the one that links to xoospace.com) IS MISSING THE CLOSING TAG. The correct code to place in there is:

            <a href="http://www.xoospace.com/" title="Myspace Graphics - Hi" target="_blank"><img src="http://xs2.xoospace.com/myspace/graphics/17858.gif" alt="Myspace Graphics - Hi" >

            You are missing that closing tag in RED
            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

            • FairyDuster
              Private First Class

              • Jul 2007
              • 8

              #7
              Re: Help

              This forum conversation is now listed in google search!! With my domain name. This is NOT cool,how do I correct it?

              Comment

              • Andy128
                Major General

                • Dec 2005
                • 2317

                #8
                Re: Help

                There is no way to correct it. That is what google does- gathers and organizes information on the net and makes it avaliable based on key words for all the world to see and benefit from.

                Andy
                PHP- is a blast!

                Comment

                • FairyDuster
                  Private First Class

                  • Jul 2007
                  • 8

                  #9
                  Re: Help

                  Hi Andy

                  So now anyone searching my site will see what an amatuer web builder I am. WOW that should make me look real professional.

                  I have a new problem... My pics are showing up as a red x when I try to email someone the index page. Is there a solution to this?

                  Comment

                  • navaldesign
                    General & Forum Moderator

                    • Oct 2005
                    • 12080

                    #10
                    Re: Help

                    What do you mean "email someone the index page" ?

                    web pages consist of code AND images. You cannot email a webpage simply like that because images will not appear.

                    If you email him the original BV page (index.bvp) you also need to have him install BV on his computer, and also send him the images. Then, he will need to re-do the path to the images, and ONLY THEN he will be able to see the entire page WITH the images.
                    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

                    Working...
                    X