PDA

View Full Version : Help



FairyDuster
07-16-2007, 08:42 PM
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);
?>

Andy128
07-17-2007, 06:37 AM
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

navaldesign
07-17-2007, 02:54 PM
Please also note that you have an error in your script:

$mailsubj ="appointment\n";

Please edit it or it won't work

FairyDuster
07-19-2007, 02:32 AM
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.

Andy128
07-19-2007, 05:05 AM
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

navaldesign
07-19-2007, 07:52 AM
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

FairyDuster
07-21-2007, 02:00 AM
This forum conversation is now listed in google search!! With my domain name. This is NOT cool,how do I correct it?

Andy128
07-21-2007, 05:48 AM
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

FairyDuster
07-22-2007, 01:17 AM
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?

navaldesign
07-22-2007, 05:45 AM
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.