Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > Email Problems (POP, SMTP & Webmail)

Notices

Email Problems (POP, SMTP & Webmail) Covers problems with receiving and sending Email, configuring your email services (ie. Outlook, Eudora, Pegasus) and using webmail.

Reply
 
LinkBack Thread Tools
  #1  
Old 02-25-2008, 08:33 PM
Sergeant
 
Join Date: Feb 2008
Posts: 21
Default Contact Link

Hi,

I've read thru these posts and watched the tutorial several times but just can't seem to get this right.

I have created the contact form on my contact us page (have not published the form yet).

When I go to make a thank you page and click on Page HTML for the php code...I can't find the (mail to) part of the code they are talking about to copy and paste. I hope this makes sense to somebody.

Please help. Thanks in advance.

Hybridizer
http://www.hybridizer.net
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 02-25-2008, 08:45 PM
First Lieutenant
 
Join Date: Jan 2007
Location: Newcastle , Australia
Posts: 163
Send a message via MSN to aussiebaz Send a message via Skype™ to aussiebaz
Default Re: Contact Link

This is the coding you need to place on your page:

Replace the BLACK text with your own

<?PHP
$mailto =
"your email";

$email = $HTTP_POST_VARS['email'];
if ($email == "") {
$email = $mailto;
}
$mailsubj = "Form Application";
$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);
?>
=====================


Hope this helps


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 02-25-2008, 09:02 PM
Sergeant
 
Join Date: Feb 2008
Posts: 21
Default Re: Contact Link

Thank you so much for replying. I think I am maybe just being a bit dense here. My contaact form is going to be on my contact us page. I have made the thank you page as a separate page and it is named thank you page. I get the following code from the (not yet published) thank you page. So I have a couple of (probably) stupid questions:

1. Am I getting my code from the right place?
2. Can I just copy and paste the code you wrote and if I can where?

Thanks again so much for your help :)

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Thank You</title>
<meta name="GENERATOR" content="Created by BlueVoda">
<style type="text/css">
div#container
{
width: 800px;
position: relative;
margin-top: 0px;
margin-left: auto;
margin-right: auto;
text-align: left;
}
body
{
text-align: center;
margin: 0;
}
</style>
<script type="text/javascript">
<!--
function SwapImage()
{
var doc=document, args=arguments;
doc.$imgSwaps = new Array();
for(var i=2; i<args.length; i+=2)
{
var elem=FindObject(args[i]);
if(elem)
{
doc.$imgSwaps[doc.$imgSwaps.length]=elem;
elem.$src=elem.src;
elem.src=args[i+1];
}
}
}
// -->
</script>
<script type="text/javascript">
<!--
function FindObject(id, doc)
{
var child, elem;
if(!doc)
doc=document;
if(doc.getElementById)
elem=doc.getElementById(id);
else
if(doc.layers)
child=doc.layers;
else
if(doc.all)
elem=doc.all[id];
if(elem)
return elem;
if(doc.id==id || doc.name==id)
return doc;
if(doc.childNodes)
child=doc.childNodes;
if(child)
{
for(var i=0; i<child.length; i++)
{
elem=FindObject(id,child[i]);
if(elem)
return elem;
}
}
var frm=doc.forms;
if(frm)
{
for(var i=0; i<frm.length; i++)
{
var elems=frm[i].elements;
for(var j=0; j<elems.length; j++)
{
elem=FindObject(id,elems[i]);
if(elem) return elem;
}
}
}
return null;
}
// -->
</script>
</head>
<body background="newbacg.jpg" bgcolor="#FFFFFF" text="#000000">
<div id="container">
<div id="bv_" style="position:absolute;left:143px;top:174px;widt h:599px;height:72px;z-index:0" align="center">
<font style="font-size:21px" color="#000000" face="Arial">Thank You for your Email!<br>
<br>
We will get back to you shortly.</font></div>
<div id="bv_" style="position:absolute;left:386px;top:284px;widt h:110px;height:156px;z-index:1" align="center">
<table border="0" cellpadding="0" cellspacing="0" id="NavigationBar1">
<tr>
<td align="left" valign="top" width="110" height="36"><a href="http://www.hybridizer.net/index.html"><img id="bv01028" src="bv01028.gif" alt="http://www.hybridizer.net/index.html" align="top" border="0" width="110" height="36" onmouseover="SwapImage(1,0,'bv01028','bv01028_over .gif')" onmouseout="SwapImage(0,0,'bv01028','bv01028.gif') "></a></td>
</tr>
<tr><td height="4"></td></tr><tr>
<td align="left" valign="top" width="110" height="36"><a href="http://www.hybridizer.net/gallery.html"><img id="bv01029" src="bv01029.gif" alt="http://www.hybridizer.net/gallery.html" align="top" border="0" width="110" height="36" onmouseover="SwapImage(1,0,'bv01029','bv01029_over .gif')" onmouseout="SwapImage(0,0,'bv01029','bv01029.gif') "></a></td>
</tr>
<tr><td height="4"></td></tr><tr>
<td align="left" valign="top" width="110" height="36"><a href="http://www.hybridizer.net/resources.html"><img id="bv01030" src="bv01030.gif" alt="http://www.hybridizer.net/resources.html" align="top" border="0" width="110" height="36" onmouseover="SwapImage(1,0,'bv01030','bv01030_over .gif')" onmouseout="SwapImage(0,0,'bv01030','bv01030.gif') "></a></td>
</tr>
<tr><td height="4"></td></tr><tr>
<td align="left" valign="top" width="110" height="36"><a href="http://www.hybridizer.net/contactus.html"><img id="bv01031" src="bv01031.gif" alt="http://www.hybridizer.net/contactus.html" align="top" border="0" width="110" height="36" onmouseover="SwapImage(1,0,'bv01031','bv01031_over .gif')" onmouseout="SwapImage(0,0,'bv01031','bv01031.gif') "></a></td>
</tr>
</table>
</div>
</div>
</body>
</html>
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 02-26-2008, 11:47 AM
First Lieutenant
 
Join Date: Jan 2007
Location: Newcastle , Australia
Posts: 163
Send a message via MSN to aussiebaz Send a message via Skype™ to aussiebaz
Default Re: Contact Link

Your "Contact Page" is the page that
will contain your form for people to
fill in and submit.

Your "thankyou" page will contain the code
that I have given you in my post above.
This can be placed anywhere on your "thankyou" page

YOU MUST then save your "thankyou" page as "action.php"
(not "thankyou")
for the coding to work and for your form to work.
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 02-26-2008, 05:42 PM
Sergeant
 
Join Date: Feb 2008
Posts: 21
Default Re: Contact Link

Thank You, Thank You, Thank You!

It took a few tries but I'm finally there. Youw ere so much help aussiebaz!

hybridizer
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 04:25 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, 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