View Full Version : Web Template help

12-12-2004, 02:53 PM
Gopher, again, thanks for all your help in helping folks get their websites started. I am currently working on modifying temp #5 for my business. For some reason, when I downloaded it I did not get the Welcome page , so I can not modify it. It comes up when navigating buttons from one of the other pages but does not have it's own file to pull up directly in a HTML editor.Is this a problem on your end or did something go wrong with the download?
Also, I would really like to add a page for Core-Aeration, as well as a page for seasonal tips and specials combined. Is this possible? If not, is there a way I can change the Testimonials button and page header to read Core-Aeration instead of Testimonials? I am using Coffecup 2005 HTML editor but am mostly using the visual editiing features since I am totally new to HTML code. Tried to change the button in Code editting mode but the button looked different when I was done, so I didn't save the changes. Actually looking to be able to access the Core-aeration page from both a button and by making the words core-aeration in the services page a link.
Again thanks for all the help. What I have edited so far looks great and I can't wait to get it on the web soon.

12-13-2004, 07:24 AM
Hi Turfsurfer,

You can download the web pages here. (http://www.gophergraphics.com/images/webtemplate5/index.html)

View the page you need and save it.

Quote[/b] ]Also, I would really like to add a page for Core-Aeration, as well as a page for seasonal tips and specials combined. Is this possible?

Sure this is possible. You can edit the pages any way you see fit. You just have to edit the html code.

Let me know if this helps.

Show us the link to your site when you are done.

12-14-2004, 04:51 PM
Gopher, thank you, I downloaded the Welcome page and now I can edit it. Trying to figure what I did wrong with the HTML coding for the buttons. When I finished, the button for core-aeration looked different( font was different, had a small "x"box and the page heading did not change. All I did was go into the code and change every word "testimonials" to "core-aeration". Should this be a long involved process or was I close with what I did? As soon as I figure it out, I'll have my site up that day.
Also, I like the idea of having a page where a potential customer can submit their address and request an estimate by hitting a "submit" button. Where does this request go? I saw an example powered by your "lawnmail". How can I do something like this on my site?

12-14-2004, 05:16 PM
After a little more looking, I see that you have to have gopher software to run lawnmail. For sites that just have the estimate form with a "submit" button at the bottom, do they just code that button somehow to link to their e-mail?
Lawnmail aside, I looked at the features of your Gopher software and am definately interested in downloading the "plus" trial version to play around with during the offseason. I currently use Quickbooks and I see the "plus" is compatible. Does this mean that I won't have to enter invoicing and receivables in both? For instance, if I bill out of Gopher, does the info automatically get transferred to QB? I like the financial reports that I get from QB and do not want to make double entries for both softwares. I do like alot of the features in Gopher, looking forward to using the trial and possibly buying before March hits.

12-14-2004, 07:46 PM
Hi turfsurfer,

Do you want to post your web address and then we can check it out? If you are still having coding problems maybe we can see something that isn't right.
Yes Lawnmail needs Gopher because it accesses your customer database allowing your customers to review their data online.
Quote[/b] ]Does this mean that I won't have to enter invoicing and receivables in both?
You would enter your data in Gopher and can export that data to QB. So you would only enter the data once.

12-15-2004, 11:58 AM
Thanks, I have not published the site to the web yet, so you won't be able to look at it. I'll work on it some more and if I just can't figure it out, I'll publish it uncompleted and let you look at it. Thank again for the help.

12-16-2004, 08:21 AM
Hi turfsurfer,

We are looking forwards to seeing it.

12-22-2004, 05:58 PM
Turfsurfer....I am trying to get my web page started. *I'm looking for a simple program (for dumbies) to edit with. *Do you have any ideas to what progam I should use.

12-24-2004, 09:11 AM
Here is the Coffee Cup HTML editor program


12-27-2004, 09:35 PM
Blades, sorry it took so long to respond. I reccomend the coffeecup software to help with your site. I have taught myself alot over the last couple weeks but admit I still have alot to learn. My website is basically done but I'm having to put out alot of fires. Right now I'm dealing with the fact that none of the graphics and images seem to have been uploaded correctly. It all looks fine on when looking at it through the windows explorer files on my hard-drive, but I must have made some kind of mistake with the links because there are no images on the website, just placeholders. I'm still learning the difference between when to use "href" and when to use "src" to refer to images. When it's done I think it will be a great site and gophers template definately helped alot as a base document. I would probably be done right now but I got ambitious and expanded the basic template quite a bit. Good luck with your site.

12-28-2004, 05:31 AM
Hey Blades and Turfsurfer....

A couple of tips to help you on your way....

When adding sections to a page look for repeating bits of code... this makes it easier to see which bit of code means a certain thing on the actual site...

HREF and SRC are used in two different ways....

HREF is used to link to different places on a page...

For example...

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

The above will output THE BIT YOU CLICK ON HERE (TARGET OF THE LINK.html) and when you click on it it will go to "TARGET OF THE LINK.html"

For images you would use the IMG tag

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

you can also add width and height etc to the above... to give..

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
<img src="IMAGE LOCATION HERE" width="100" height="100"/>

This will make the image square at 100pixels x 100pixels.


I hope the above as helped... you can also combine them (which is probably what you have on your navigation menu and why you are getting confused)

eg.. to click on an image (button?) to take you somewhere you can have...

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"><a href="TARGETPAGE.html"><img src="IMAGELOCATIONHERE" width="150" height="15"/></a>[/QUOTE]

If youve got any more questions just post them and i'll post things like this to help you out...


12-29-2004, 07:02 PM
Lightning, thanks alot. That will help me alot. I HAVE been combining the href and src codes because of what I saw in other parts of the template. Besides my pictures not loading, pretty much everything else works. One problem I am having is that on my contact page where I have you input your info to get an estimate, when you hit the "request your estimate" button you get a message saying this is not allowed for the URL. I have linked that button to my e-mail from the web host (go daddy). Is there a special kind of e-mail account needed to receive the info from my contact page? Here is a link to my uncompleted site ( I will work on the image codes later). I have not submitted the site to any search engines yet so if the link doesn't work you will have to enter it in your top explorer browser.
My Webpage (http://www.easyacreslawncare.com).
Thanks for all your help. Another example of why these forums are so valuable. Gopher has definately earned my business for all their help. I will be purchasing their software this winter for sure.

12-31-2004, 07:04 AM
Ok.. the POST error is normally given if php is not enabled correctly on the web host... please check that

it is available for use first.... if it is then carry on reading ;)

PHP email is a bit more complicated than sending data between forms to web pages....

Basically you need to set certain values in your servers php.ini file to allow you to send email...

The site below tells you what data to edit in the php.ini file...


When you click the send email button on your page, you will need to run a php file to send the email...

This is going to be a big example... so look away now everyone who cant be bothered to read!!!


A form on a web page is sent using the Action tag...

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"><FORM action=?cmd=send method=post>[/QUOTE]

That is what you currently have.... the action tells the browser what page to go to next when the sumbit

button is clicked, the method tells it to keep the data secret or public (the GET method is used to send

the data and display it in the address bar, the POST method is used to send it without displaying it in the

address bar.)

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"><FORM action="emailscript.php" method=post>[/QUOTE]

The above will, instead of trying to send direct from the html page, run a file called sendemail.php which

i will later show what it should contain to send the email correctly...

Right, to the form is set to run a php file when the button is clicked, now, what data will the form send?

Each piece of data is entered by the user in textboxes etc on the contact page.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"><input name="contactname" type="text" size="100"/>[/QUOTE]

The above code will put a textbox on the site, for the user to enter their Contact Name.

The NAME tag is what the data inside the box is called when it is sent by clicking the submit button...

Ok, so we now have a form that has a text box on it, that will run "emailscript.php" when it is sent, we

now need to add the submit button to send the data to the file.

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"><input name="submit" type="submit" value="Click ME!"/>[/QUOTE]

This will put a button on the page with "Click Me!" written on it, we now tell Internet Explorer that the

form is finished by putting the end tag for the form onto the page..

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"></form>[/QUOTE]

Right!! We now have a fully working form that will send things to "emailscript.php". *Now we need to make

the emailscript.php file...

Only kidding ;) i'll make it for you!!

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
<title>Send Email</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

// redrect back to the contact page after running script...

header("Location: contact.html");

//get the data form the contact page and store it in a variable


//right so we have the users contact name stored in somthing called $contactname
//lets write an email!!

$to = "you@yourdomain.com";
$subject = "You subject";

// "\n" is the character used to create a new line int he email.. (like pressing enter)
// a . will join bits of data together...

$body = "Hi,\nThanks for contacting the website!\n\nYour name was: ".$contactname;

// Call the mail function and send the email
if (mail($to, $subject, $body))
* echo("<p>Message sent!</p>");
* echo("<p>Message delivery failed...</p>");

Save the above in notepad as emailscript.php

Right... now thats all done your ready to go!!

Upload all of the new files and have fun sending email!

P.S i havent had time to thoroughly test the php file but it should work as ive done it before!!!

Hope this helps, and sorry for the long post ;)

/lightning *http://www.gophergraphics.com/forum/iB_html/non-cgi/emoticons/wow.gif

12-31-2004, 04:18 PM
Whew! that's alot of new stuff for a newbie like me. Just to get this straight, am I correct in your code samples that whenever you have //, that is a note to me and not part of the code or do I input it as is? Also, did you use any generic values that I have to change for myself or is the code written as is (ex. you@yourdomainname, is that literal or a variable for this particular part) ? I will definately have to look at my code here in a minute to see exactly where to input these commands. If you included any totally new code here, where will I place it? Also do I have to write this code for every text box or just once at the beginning or end to cover the whole form? Sorry, probably should have printed my page first before answering your post.
One last thing, someone on another forum suggested I have left the door open for all kinds of spam by not masking my e-mail and form actions. Is this true and will the method=POST (vs. =GET) solve some of this or is this something else? I won't be making much noise about the site until I get that issue resolved.
Thanks for all the help, I'm kindof a rock but I'll catch on.

01-01-2005, 05:51 AM

Yep you're right the // means that that line does not get ran as part of the script and this means that it is used to leave notes to the user...

You@yourdomain.com will need to be changed to your email address, aswell as the subject to any subject you want..

The only new code is the editing of the ACTION value on the FORM tag to tell the form to go to the php file....

Other than that you will need to add to the php file the sections from your contact page that you want to be emailed...


<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

the above grabs the data from your form, so to add lines to this to get more things from your form simply do the following...

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

Then add these into the body of the email by adding the following code to the body....

A "." followed by "\n" followed by a "." then $newdataname (the data name that you have just added)


<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
$body = "Hi,\nThanks for contacting the website!\n\nYour name was: ".$contactname;

changes to:

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
$body = "Hi,\nThanks for contacting the website!\n\nYour name was: ".$contactname."\n".$newdataname."\n",$anotherdata name;


Yeah the get command increases the chance of spam as search engines can pick up email addresses from the address bar. By using the POST command you hide the data (including email address) that is sent.


01-01-2005, 09:49 AM
Lightning, thanks for everything and Happy New Year. I will be trying your suggestions to see if they work with my webhost account. If I am getting you correctly I will basically be sending myself an e-mail with all the info from the contact form on it seperated by the "/n" meaning a new line for each bit of info. The "thanks for contacting the website" line was throwing me off as I thought it was a seperate response back to the potential customer (it's not, is it?). I can actually delete that line since it will just be mailed to myself, correct? I am hosed if I've got that all wrong.
Anyway, is this considered "coding"? Because Godaddy just sent me a reply saying they don't support coding and have a seperate form-mailer script instead (unfortunately, I couldn't read their sample script since I couldn't find where to configure my e-mail to read plain text as they suggested if the text boxes were blank). I hope you're way works since it seems like it will be better.
One more thing, I have a friend who says he has looked at my website on several different computers and the images cover the text and other things are jumbled around. It all looks fine on the several computers I have tried. How does it look to you? Did I miss some universal format that will make it look right on everything? Thanks.

01-01-2005, 09:58 AM
Yes basically you send yourself an email with all of the data, and you can get rid of that line...

Yes php scripting is considered to be a code... but i though your email was from godaddy not your webhosting? You can test it by uploading a php file to the server and trying to view it.. if you can without it asking you to download the file then php is enabled...

If they have their own form-mail script i could have a look at that and see how to include that on your site instead....

The site looks fine on my pc... try changing your resolution and viewing your site to check for any errors http://www.gophergraphics.com/forum/iB_html/non-cgi/emoticons/smile.gif

01-02-2005, 09:22 AM
Lightning, thanks again. *I am waiting on godaddy to send me their script. *They have sent a couple e-mails saying they have attached it, but the attachment is not there. *I just asked them to send again. *You are correct my e-mail is from go daddy, and they are also hosting the site.
*I'm going to run your script and see if it works. *Let me see if I have it correct. *The only change I make to my current form is change
form action=?cmd=sendmethod=post to form action="emailscript.php" method = post. *Then after entering the values for my text input boxes, I insert the emailscript.php code sample that you provided (modified to capture all the required text box info). *
*Sorry this has dragged on for so long, it's been tough trying to get this done over the holidays (basically working on it in pieces). *Thanks for all your help.

01-02-2005, 10:14 AM
Yup what you have said above is correct... but you also need to edit the php.ini file as i have also mentioned to enable the php to send from your email.

01-02-2005, 03:50 PM
Lightning, I'm almost done with the script you've been helping me with. I'm not sure if I'll be able to use it with Godaddy's e-mail account. I like this form so much better than the sample script they sent me. If I can't use it on their e-mail, can you point me to an e-mail server that will let me run this script? Will the free servers like yahoo let me do it?
I have one more question on the script and that is how do I handle the choices in my Option box for "services needed" and my checkboxes? I'm thinking the command might be different for grabbing this data from the form and sending it to my email.
Thanks again man, by the time I'm done with my site you ought to have a FAQ list just from my questions! This has been invaluable.

01-02-2005, 05:44 PM
Right Ok.... a few changes to my script page just to make sure it works as i've just tested it on my webhost http://www.gophergraphics.com/forum/iB_html/non-cgi/emoticons/smile.gif

The change is in the emailscript.php file.... just moving the header section to the top of the page, so now you need this at the top of the php file....

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE"><?php header("Location: contact.html"); ?>
<title>Send Email</title>
<meta http-equiv="Conten...........

and then delete these lines from a little further down...

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">
// redrect back to the contact page after running script...

header("Location: contact.html");

Right http://www.gophergraphics.com/forum/iB_html/non-cgi/emoticons/smile.gif

Regarding your goDaddy account if you have the Economy package from this link,...

https://www.godaddy.com/gdshop....&ci=260 (https://www.godaddy.com/gdshop/hosting/landing.asp?se=%2B&sourceStr=hgchejobqhyddadglatjtcvbtfmendkcocuishji sjeesblicfabghudlimaoevf&ci=260)

then you will be fine to use the emailscript.php files and you dont need to worry about changing the php.ini file as it will have been set up for you!! -The email address you use on the script does not matter...

All good news so far then!!


Right... for your option box.... the code will be exactly the same...

On your site you currently have the name for the multiple selection bit as name=Servicesneeded

Simply use


And this will put the Item selected into the email (as long as you put it in the email body aswell!!!)


Now for the checkboxes....

These send true or false data to the script... so you need to add the following code....

<table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">

// get data from form
$byemail=($_POST["Contact by Email"]);

//make a choice using data
if($byemail==true) {
$emailcontactpreference="By Email = Yes";
} else {
$emailcontactpreference="By Email = No";

$byphone=($_POST["Contact by Phone"]);

if($byphone==true) {
$phonecontactpreference="By Phone = Yes";
} else {
$phonecontactpreference="By Phone = No";


Then in the email body include the $emailcontactpreference and $phonecontactpreference data


So.. in summary...

- Any email account will work
- The economy or higher GoDaddy webhosting will work (or any host with php available)
- A slight code change needed (in my script)
- Use above code to take info from checkboxes and option box

I think that answers most of your questions!!!

Hope you get it sorted!!


01-02-2005, 06:33 PM
Lightning, fantastic, I'll try to get the code changed tonight (once again, in between everything else going on.) I do have the economy webhosting account for now so it should work. I actually thought the problem with accepting the script was with the e-mail account not the hosting account. Good news all around. BTW, are you a regular forum poster or do you work for Gopher? If not, they should give you a job and pay you alot. Thanks again.

01-03-2005, 05:39 AM

Yeh im a regular poster now because i do most of the web design stuff for Gopher.... (they pass it to me and i work with the client and get paid from the client) - Finding web design work is always hard!!


01-03-2005, 06:32 AM
Well, I don't exactly know where I went wrong, but the script is not working or looking right on my page. I was able to upload what I have to the server so maybe you can see what happened. All the emailscript.php script seems to just be displayed in the body of my web page instead of executing the form. When editing, the Copffeecup software did tell me I had excess body tags and would not let me switch to visual editting to see what it looked like. It directed my cursor to the body tag you had me insert. When I remove your body tags the result was the whole page disappeared (don't know what would cause that).
Anyway the result is there for you to see. I did not change any of my existing code except for the form action sentence. Then I just inserted the php script. You'll probably see where I goofed right away. I'm sure I messed up a tag or something.

01-03-2005, 07:37 AM
Hey again... i see where you are going wrong...

Basically you have put the php code into the contact.html file when it should be in a seperate file called emailscript.php

When the button is clicked on the contact.html the web server runs the php file then goes back to the contact page....

I uploaded both pages to my webhost and edited them (there were some missing quotation marks and some character errors) and the email form now works.... however it is only sending half of the data....

I will take a look at your files now and make them work ;)

I have attatched the current half working files so you can see what i have changed so far...


01-03-2005, 08:06 AM
Right... all done...

I had to recode the form ad you had missed the " " around each name tag and when it was sent to the emailscript.php file only four values were being sent...

I also changed some bits in the emailscript.php so that they would be sent correctly...

The new contact.html and emailscript.php are attctched.. simply upload these to your webhost !!


01-03-2005, 09:03 PM
Lightning did I miss something? I opened your download and it only contains dozens of different image files and buttons opening with ACDsee. Looks like a jumble of Gopher, Lawmsite, Godaddy and my own image files. I saw no php file included. I opened both your post downloads and they were both the same kid of thing.

01-04-2005, 05:18 AM
Erm.... did you open it with winRaR??

It definately contains two files ..... contact.html and emailscript.php .. but if you open it in something other than winrar then yes it will expand into all of the component parts of the file....

if not you can grab the files from

This Link (http://www.elefunk.co.uk/desktop.zip)


01-04-2005, 07:08 PM
Hey , I was able to get the files from the link you supplied, and they look good. I don't know what was up with the others but it opened up in ACDsee and had all kinds of images not associated with my site. I'll be trying the new stuff later tonight or tomorrow and let you know how it works. Thanks again.

01-05-2005, 05:51 AM

01-05-2005, 06:20 PM
Well, sad to say, it's not working correctly. Are you sure when you said my webhosting should support this code? When hitting the request button now, I get a screen saying there is a server side error and the info can't be processed. I'll have to get back with their support people. They told me before they didn't support php coding within an email, but I was hopeful when you said they could. Their php form mailer basically is a couple text boxes and then a bigger text area for comments, I don't really want that.Maybe I did something wrong but I think this one might be on their side.
Once again, I really like this type of form and will be looking at how much hassle is involved in switching my hosting if they can't support my site the way I want it. I don't know how hard it will be to find but your host at least let's you do it.

01-05-2005, 11:34 PM
Well, it's official. The response from godaddy is they don't allow custom form mailer scripts, only the one they provide you. Funny, since the email support request and their customer survey employ some of the same things they won't let me do. Frustrating since I thought they would be at least a reliable host and now i have to look for another. Thanks for all your help Lightning.

01-06-2005, 05:31 AM
No problem... glad to be of help...

sorry to hear about your host.... but im sure if you look at This Site (http://www.webdevforums.com) in the hosting section you will find a very reliable and cheap web host if you are still thinking about changing....



01-07-2005, 07:11 PM
Hi turfsurfer,

Let us know who you change to and how you like them.

01-08-2005, 05:24 PM
I switched my webhosting to Globat.com. I was really pretty confused because their are SO many hosting services and I read of so many scams that I was ready to just pay alot and go with SBC because at least they're not going away tomorrow. I read some really good reviews of Globat and they were ranked very high in a couple of forums so I gave them a try.
The switch was pretty smooth and the pricing was about the same as for the Godaddy account and I get alot more space. Sad to say that even though their server runs my PHP script that Lightning did for me, it is still not working. It shows going to the email.php in the browser, then I get a blank screen and it says "done" in the lower left toolbar. I also get no mail and it doesn't take me back to the contact page like it's supposed to.
For all the aggravation it's causing me, I think I'm just going to take it to a local design place ( if I can find a reasonable one), and see if they can just make that one form work so I can be done with my site. Lightning helped an awful lot but it's probably very difficult when you're working over the net and dealing with a code rock like me. I've learned an awful lot of computer stuff the last few weeks for a guy just trying to make the grass green.
BTW, what do you think of what I've done with your template (assuming I can make it all work)?

01-10-2005, 02:16 PM
Hi Turfsurfer,

I am loading your site now http://www.easyacreslawncare.com

I really like this "To find out how we can put the green grass on YOUR side of the fence, CALL"
that is an attention getter. Your site looks good.

I saw your great pictures too. If you are interested, we could take a few of your pictures and turn them into marketing material and web templates. We could then post these on our forum. Let us know if this would be something that would be ok with you.