Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > Other Forums > Start your own community forum

Notices

Start your own community forum Discussions & Articles about how to create, promote and benefit from having your own community forum.

Reply
 
LinkBack Thread Tools
  #1  
Old 02-04-2008, 07:49 PM
Sergeant
 
Join Date: Feb 2008
Location: Daphne, Alabama
Posts: 21
Question PHP Line

Hi,
I want to put a form on my page. I follow the tutorial word for word. After creating the form page I created a thanks you page as in the tutorial. Then I click on page HTML . On the HTML page I couldn't "PHP" line. What am I doing wrong?

Francis
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 03-11-2008, 05:17 PM
Sergeant
 
Join Date: Feb 2008
Location: Daphne, Alabama
Posts: 21
Default Re: PHP Line

I publish my website www.baldwinalumnaedst.org but I still have not been able to get the form to work on the Contact Page. What am I doing wrong? Please help!. Thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 03-11-2008, 05:28 PM
Marincky's Avatar
Major General
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 2,506
Send a message via MSN to Marincky
Default Re: PHP Line

Open your 'action' page then right click on the space OUTSIDE your website area and click on 'page properties' then in the drop down where it says 'file extension' change this from html to php and then republish that page.
__________________
Ramsey

Web Design Help?
Creating affordable internet presence for your business.
Unmatched Customer Service

Want to get on Page one of Google? Talk to me!

Limo Hire
Wedding Services
Wedding Forum Wedding Links
Wedding Dress Comparison Site

Make a more functional 404 Error Page
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 03-12-2008, 04:46 PM
Sergeant
 
Join Date: Feb 2008
Location: Daphne, Alabama
Posts: 21
Default Re: PHP Line

I open 'action' page then right click on the space OUTSIDE your website area and click on 'page properties' then in the drop down where it says 'file extension' change this from html to php and then I publish that page. When open page I still get page not found "http//404" error. Is their more to it.

Francis
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 03-12-2008, 04:58 PM
Marincky's Avatar
Major General
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 2,506
Send a message via MSN to Marincky
Default Re: PHP Line

Francis,

I don't think this page has published.

Open it again, make sure it is definitely called 'action' all lower case, make sure it is in php format, then try publishing again. Let me know when you have done this.
__________________
Ramsey

Web Design Help?
Creating affordable internet presence for your business.
Unmatched Customer Service

Want to get on Page one of Google? Talk to me!

Limo Hire
Wedding Services
Wedding Forum Wedding Links
Wedding Dress Comparison Site

Make a more functional 404 Error Page
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 03-13-2008, 05:13 PM
Sergeant
 
Join Date: Feb 2008
Location: Daphne, Alabama
Posts: 21
Default Re: PHP Line

Hi Ramsey,
I re-visit the tutorial, I created a thanks you page as in the tutorial. I click on the space OUTSIDE your website area and click on 'page properties' then in the drop down where it says 'file extension' change this from html to php. Then I click on the space OUTSIDE your website area and click on page HTML . On the HTML page is this where I type
<?php
$email = $HTTP_POST_VARS[email];
$mailto = baldwinalumnaedst******.com;
$mailsubj = "contact form Submission";

Save page & publish page, Is this correct.

Francis
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old 03-13-2008, 05:31 PM
Marincky's Avatar
Major General
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 2,506
Send a message via MSN to Marincky
Default Re: PHP Line

Quote:
Originally Posted by fconaway View Post
Hi Ramsey,
I re-visit the tutorial, I created a thanks you page as in the tutorial. I click on the space OUTSIDE your website area and click on 'page properties' then in the drop down where it says 'file extension' change this from html to php. Then I click on the space OUTSIDE your website area and click on page HTML . On the HTML page is this where I type
<?php
$email = $HTTP_POST_VARS[email];
$mailto = baldwinalumnaedst******.com;
$mailsubj = "contact form Submission";

Save page & publish page, Is this correct.

Francis
Francis,

open the page HTML again, via your page properties, and then click on 'begining of body' tab and paste everything below I have put in red into there.

<?PHP
$mailto = "baldwinalumnaedst******.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Enquiry From Website";
$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);
?>


Once you have done this, republish this page and then test your form.
__________________
Ramsey

Web Design Help?
Creating affordable internet presence for your business.
Unmatched Customer Service

Want to get on Page one of Google? Talk to me!

Limo Hire
Wedding Services
Wedding Forum Wedding Links
Wedding Dress Comparison Site

Make a more functional 404 Error Page
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old 03-14-2008, 03:43 PM
Sergeant
 
Join Date: Feb 2008
Location: Daphne, Alabama
Posts: 21
Default Re: PHP Line

Ramsey,
I click on 'beginning of body' tab and paste everything in red into the box and click OK. Save and published. Got on the internet, pull up the website www.baldwinalumnaedst.org click on Contact Us Page, put in my name, my email address and wrote a message, then Submit. It went to the Action.php page/Thank You page, it worked.

Thank you so much, I know who to email if I have many more problem, and I will have problem, you are the best.

God bless you,
Francis
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old 03-14-2008, 04:02 PM
Marincky's Avatar
Major General
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 2,506
Send a message via MSN to Marincky
Default Re: PHP Line

Maybe not the best Francis, but I do like to think I help those who need it and explain it in a way that is simple and fitting. I am glad you are sorted.
__________________
Ramsey

Web Design Help?
Creating affordable internet presence for your business.
Unmatched Customer Service

Want to get on Page one of Google? Talk to me!

Limo Hire
Wedding Services
Wedding Forum Wedding Links
Wedding Dress Comparison Site

Make a more functional 404 Error Page
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old 03-14-2008, 11:47 PM
Sergeant
 
Join Date: Feb 2008
Location: Daphne, Alabama
Posts: 21
Default Re: PHP Line

Ramsey,
I knew I will have a problem (I'm sorry). The problem is once I send the message from the Contact Us page, it goes to the Action page/Thank you page, this is working fine. Now, when I go to check my email, there is no message.

Sorry to bother you,
Francis
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old 03-14-2008, 11:59 PM
Marincky's Avatar
Major General
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 2,506
Send a message via MSN to Marincky
Default Re: PHP Line

I will email you with the same email address on your form. Let me know if you get it.
__________________
Ramsey

Web Design Help?
Creating affordable internet presence for your business.
Unmatched Customer Service

Want to get on Page one of Google? Talk to me!

Limo Hire
Wedding Services
Wedding Forum Wedding Links
Wedding Dress Comparison Site

Make a more functional 404 Error Page
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old 03-15-2008, 12:23 AM
Marincky's Avatar
Major General
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 2,506
Send a message via MSN to Marincky
Default Re: PHP Line

Have emailed you. If you haven't received please check in the code I gave you above that your email address is correct.
__________________
Ramsey

Web Design Help?
Creating affordable internet presence for your business.
Unmatched Customer Service

Want to get on Page one of Google? Talk to me!

Limo Hire
Wedding Services
Wedding Forum Wedding Links
Wedding Dress Comparison Site

Make a more functional 404 Error Page
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old 03-15-2008, 12:39 AM
Sergeant
 
Join Date: Feb 2008
Location: Daphne, Alabama
Posts: 21
Default Re: PHP Line

Ramsey,
The email address is incorrect when I email you, I email part of the website address. There is no dst in the email address (sorry, I'm new at this). The correct email address is baldwinalumnae******.com the website address is www.baldwinalumnaedst.org. First, send me an email to be on the safe side, and I will respond.

Francis
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old 03-15-2008, 01:33 AM
Marincky's Avatar
Major General
 
Join Date: Apr 2006
Location: Worcester, UK
Posts: 2,506
Send a message via MSN to Marincky
Default Re: PHP Line

Quote:
Originally Posted by fconaway View Post
Ramsey,
The email address is incorrect when I email you, I email part of the website address. There is no dst in the email address (sorry, I'm new at this). The correct email address is baldwinalumnae******.com the website address is www.baldwinalumnaedst.org. First, send me an email to be on the safe side, and I will respond.

Francis
In that case you need to change the email within the code you put on the page:

<?PHP
$mailto = "
baldwinalumnae******.com";
$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Enquiry From Website";
$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);
?>


Just open up the html again and change the email to the correct one and then republish your page again.
__________________
Ramsey

Web Design Help?
Creating affordable internet presence for your business.
Unmatched Customer Service

Want to get on Page one of Google? Talk to me!

Limo Hire
Wedding Services
Wedding Forum Wedding Links
Wedding Dress Comparison Site

Make a more functional 404 Error Page
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old 03-15-2008, 01:48 PM
Sergeant
 
Join Date: Feb 2008
Location: Daphne, Alabama
Posts: 21
Default Re: PHP Line

Ramsey,
I change it to the correct email address it didn't work, I even tried sending it to my personal email address it didn't work. I even thought the email addresses may have seen it as spam mail, but it wasn't in spam. Somewhere down the road, if someone else has the same problem and worked it out please let me know. Thanks for all your help.

Bless you,
Francis
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +1. The time now is 07:04 PM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2007 VodaHost.com - All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16