Results 1 to 10 of 10

Thread: Help
      
   

  1. #1
    FairyDuster is offline Private First Class
    Join Date
    Jul 2007
    Posts
    8

    Question 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 Thumbnails Attached Thumbnails Help-im000509.jpg  

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

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

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

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


  4. #4
    FairyDuster is offline Private First Class
    Join Date
    Jul 2007
    Posts
    8

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

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

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

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

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


  7. #7
    FairyDuster is offline Private First Class
    Join Date
    Jul 2007
    Posts
    8

    Default Re: Help

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

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

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

  9. #9
    FairyDuster is offline Private First Class
    Join Date
    Jul 2007
    Posts
    8

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

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

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


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