Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > General Support Issues

Notices

General Support Issues Answers to general questions and help with common problems. For help with a specific issue, post to one of the forums below.

Closed Thread
 
Thread Tools
  #1  
Old 06-05-2007, 11:47 PM
Private First Class
 
Join Date: Jun 2007
Posts: 8
Question Need Help With Contact Form !

<?PHP
$mailto ="exampleemail@example.com";
$email = $HTTP_POST_VARS[email];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Type your mail subject here";
$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);
?>
Can anyone tell me how to use this script properly to combine my contact page and my thank you together
Do i use the above script in my thank you page properties or on my contact page ive looked at the tutorials over and over but i just am not geting it i did this with my script
<?PHP
$mailto = "pdar332010******.ca";
$email = "contact";
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Youve Had A Visitor LSS.CN";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "contactlsscn :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
Is this right or am i way off well those who can help thanx in advance
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #2  
Old 06-05-2007, 11:54 PM
navaldesign's Avatar
General & Forum Moderator
 
Join Date: Oct 2005
Location: Italy
Posts: 10,052
Default Re: Need Help With Contact Form !

The instructions clearly say that you should ONLY change the parts in BLUE. You have also changed the third line and it is WRONG.
Then, you have also missed the closing tag: ?> at the end of the script.

The script must be pasted in the Inside Body (or Between head, or Start of page, it is not important) of your THANKYOU page. The thank you page MUST be published as php. And, the action of the form, must be the same as as the thankyou page name.
So, if your thank you page is saved as "thankyou", and this means that it is published as "thankyou.php", the action of the form MUST be "thankyou.php".
__________________
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!

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #3  
Old 06-06-2007, 02:25 AM
Private First Class
 
Join Date: Jun 2007
Posts: 8
Default Re: Need Help With Contact Form !

Thanks for your reply i expected more from others but thank you again unfortunately it didnt work i did the steps you said but when i hit the submit buton it goes to a blank internet page is there any
my page is http://www.lifestylesolutions.com.cn/contactlsscn
http://www.lifestylesolutions.com.cn/thankyou.php
any other help i would aprecciate thanks again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #4  
Old 06-06-2007, 02:28 AM
Private First Class
 
Join Date: Jun 2007
Posts: 8
Question Didnt Work Not Submitting Still

Thanks for your reply i expected more from others but thank you again unfortunately it didnt work i did the steps you said but when i hit the submit buton it goes to a blank internet page is there any
my page is http://www.lifestylesolutions.com.cn/contactlsscn
http://www.lifestylesolutions.com.cn/thankyou.php
any other help i would aprecciate thanks again
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #5  
Old 06-06-2007, 04:03 AM
Andy128's Avatar
Major General
 
Join Date: Dec 2005
Location: Michigan
Posts: 2,308
Default Re: Didnt Work Not Submitting Still

First- in looking at your source code for your form, all the fields are named
Editbox1, Editbox2, Editbox3 etc........... which is fine except that no field is named "email". Therefore, it does not pluck an email address from which to work with the code provided and thus hangs. So- please name your text box that houses the e-mail address of the sender to - email

Second- as Naval has stated in the other post, only make changes to the lines in Blue.

So- make the necessary changes and try again. IF that does not work- please copy exactly the php code you are using and post in this thread. No need to open a new thread.

Andy
__________________
My diamond in the rough - www.123gpp.com

* Click here for some BV tutorials (Php mailto Form, I-Frames, Picture display and much, much more!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #6  
Old 06-06-2007, 05:01 AM
Private First Class
 
Join Date: Jun 2007
Posts: 8
Question Re: Need Help With Contact Form !

ive changed all the values in the contact form as you said and now it looks as though it will work however when i hit submit it says page cannot display my theres no link between my contact page and my thank you page http://www.lifestylesolutions.com.cn/contactlsscn.php
http://www.lifestylesolutions.com.cn/contactlsscn.php

<?PHP
$mailto = "pdar332010******.ca";
$email = $HTTP_POST_VARS[email];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Youve had a visitor to lsscn";
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "contactlsscn" :\n";
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #7  
Old 06-06-2007, 06:18 AM
Andy128's Avatar
Major General
 
Join Date: Dec 2005
Location: Michigan
Posts: 2,308
Default Re: Need Help With Contact Form !

The form action is "thankyou" it should have a .php extension.
example: thankyou.php

Give that a try and it should work.

Andy
__________________
My diamond in the rough - www.123gpp.com

* Click here for some BV tutorials (Php mailto Form, I-Frames, Picture display and much, much more!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #8  
Old 06-06-2007, 03:26 PM
Private First Class
 
Join Date: Jun 2007
Posts: 8
Question Re: Need Help With Contact Form !

i have added the php extension it still does not work should my thank you the example in the change the values in the blue but in the text area of that example it says email and email subject what should go in the third line ex.<?PHP
$mailto ="exampleemail@example.com";*
$email = $HTTP_POST_VARS[email];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Type your mail subject here";*
$mailhead = "From: $email\n";
reset ($HTTP_POST_VARS);
$mailbody = "Values submitted from web site form :\n";What goes here ?
while (list ($key, $val) = each ($HTTP_POST_VARS))
{
if ($key!="submit")
{
$mailbody .= "$key : $val\n";
}
}
mail($mailto, $mailsubj, $mailbody, $mailhead);
?>

is this what should be in my thank you page and is there any code that applys to mycontact page for some rason my contact submiision goes to cannot be displayed ie page at the top address bar it is
http://www.lifestylesolutions.com.cn/thankyou.php but its like it doesnt exhist thanks to all in advance willing to help out this rookie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #9  
Old 06-06-2007, 04:19 PM
Andy128's Avatar
Major General
 
Join Date: Dec 2005
Location: Michigan
Posts: 2,308
Default Re: Need Help With Contact Form !

Do not change the third line. The error is that the thankyou.php page is not on the server. Have you published the thankyou.php? Open the thankyou page in the web builder and make sure you have:

Checked the php extension
Check the spelling that you named the page- it should be thankyou not- Thankyou or thank_you or Thank You etc.......
Make sure to publish

Then try again.

Andy
__________________
My diamond in the rough - www.123gpp.com

* Click here for some BV tutorials (Php mailto Form, I-Frames, Picture display and much, much more!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #10  
Old 06-06-2007, 04:38 PM
Private First Class
 
Join Date: Jun 2007
Posts: 8
Smile Re: Need Help With Contact Form !

Andy yeah thank you sir thats what it was a simple case of lower upper case lol thx man your a life saver !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
  #11  
Old 06-06-2007, 06:00 PM
Andy128's Avatar
Major General
 
Join Date: Dec 2005
Location: Michigan
Posts: 2,308
Default Re: Need Help With Contact Form !

Your welcome. Have a great week.

Andy
__________________
My diamond in the rough - www.123gpp.com

* Click here for some BV tutorials (Php mailto Form, I-Frames, Picture display and much, much more!)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Closed Thread


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 Off



All times are GMT +1. The time now is 02:36 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC7
2005-2009 VodaHost Web Hosting Your Perfect Web Host - All Rights Reserved

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 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203