Lawn Care Business Forum Lawn Care Business Book Lawn Care Business Blog Lawn Care Software
Home Forum Contract & Flyer Templates Blog Software Videos Podcast Calculators / Estimators Store Mower Review Design It Yourself Lawn Business School

Go Back   GopherHaul Landscaping & Lawn Care Business Marketing Forum > Graphic And Web Design Support Forums > Search Engine Optimization and Website Design Discussions.

Search Engine Optimization and Website Design Discussions. Need a lawn care business website built? Talk about search engine optimization. Or ask your lawn care and landscaping business web building related questions here. Show us your landscaping business web site for review.

Web Template help


Search Engine Optimization and Website Design Discussions.

Need a lawn care business website built? Talk about search engine optimization. Or ask your lawn care and landscaping business web building related questions here. Show us your landscaping business web site for review.
Reply
 
Thread Tools Search this Thread
  #11  
Old 12-28-2004, 05:31 AM
lightning lightning is offline
Members
 
Join Date: Feb 2004
Posts: 20
Rep Power: 11
lightning
Default

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...

Code Sample

<a href="TARGET OF THE LINK.html"> THE BIT YOU CLICK ON HERE </a>
[/quote]

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

For images you would use the IMG tag

Code Sample

<img src="IMAGE LOCATION HERE"/>
[/quote]

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

Code Sample

<img src="IMAGE LOCATION HERE" width="100" height="100"/>
[/quote]

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...


Code Sample
<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...

Lightning
Reply With Quote

Stop guess-timating. Learn how to estimate and make money! $$$
Mow Time Estimator Lawn Care Price Estimator Mulch and Topsoil Calculator Snow Plow Estimate Calculator


  #12  
Old 12-29-2004, 07:02 PM
turfsurfer turfsurfer is offline
Members
 
Join Date: Dec 2003
Posts: 47
Rep Power: 11
turfsurfer
Default

Lawn care business tipsLawn Care Business Book
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.
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.
Reply With Quote
  #13  
Old 12-31-2004, 07:04 AM
lightning lightning is offline
Members
 
Join Date: Feb 2004
Posts: 20
Rep Power: 11
lightning
Default

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...

http://email.about.com/cs/phpemailtips/qt/et021802.htm

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!!!

Right....

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

Code Sample
<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.)

Code Sample
<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.

Code Sample
<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.

Code Sample
<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..

Code Sample
</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!!

Code Sample

<html>
<head>
<title>Send Email</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body>
<?php
// 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

$contactname=($_POST["contactname"]);

//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>");
}
else
{
* echo("<p>Message delivery failed...</p>");
}
?>
</body>
</html>
[/quote]

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 *
Reply With Quote
  #14  
Old 12-31-2004, 04:18 PM
turfsurfer turfsurfer is offline
Members
 
Join Date: Dec 2003
Posts: 47
Rep Power: 11
turfsurfer
Default

Lightning,
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.
Reply With Quote
  #15  
Old 01-01-2005, 05:51 AM
lightning lightning is offline
Members
 
Join Date: Feb 2004
Posts: 20
Rep Power: 11
lightning
Default

Hey!

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...

eg

Code Sample

$contactname=($_POST["contactname"]);
[/quote]

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...

Code Sample

$contactname=($_POST["contactname"]);
$nextdataname=($_POST["nextdataname"]);
$another=($_POST["another"]);
[/quote]

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)

eg

Code Sample

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

changes to:

Code Sample

$body = "Hi,\nThanks for contacting the website!\n\nYour name was: ".$contactname."\n".$newdataname."\n",$anotherdata name;
[/quote]

...

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.

/lightning
Reply With Quote
  #16  
Old 01-01-2005, 09:49 AM
turfsurfer turfsurfer is offline
Members
 
Join Date: Dec 2003
Posts: 47
Rep Power: 11
turfsurfer
Default

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.
Reply With Quote
  #17  
Old 01-01-2005, 09:58 AM
lightning lightning is offline
Members
 
Join Date: Feb 2004
Posts: 20
Rep Power: 11
lightning
Default

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
Reply With Quote
  #18  
Old 01-02-2005, 09:22 AM
turfsurfer turfsurfer is offline
Members
 
Join Date: Dec 2003
Posts: 47
Rep Power: 11
turfsurfer
Default

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.



Reply With Quote
  #19  
Old 01-02-2005, 10:14 AM
lightning lightning is offline
Members
 
Join Date: Feb 2004
Posts: 20
Rep Power: 11
lightning
Default

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.
Reply With Quote
  #20  
Old 01-02-2005, 03:50 PM
turfsurfer turfsurfer is offline
Members
 
Join Date: Dec 2003
Posts: 47
Rep Power: 11
turfsurfer
Default

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.
Reply With Quote
Reply

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
Forum Jump

» Recent Threads
  RatingTitle, Username, & Date Last Post Replies Views
Gie-review / What's new...
ExtremeLawncareServices
Today 09:19 AM
Today 09:19 AM
by ExtremeLawncareServices
0 12
Dealing With Gas Can...
Mr. Mow
10-21-2014 01:41 PM
Today 08:37 AM
by Dan Tanner
10 381
Leaf removal
madmedic8575
Yesterday 04:14 PM
Today 06:47 AM
by Mr. Mow
3 116
My Newest Toy (B.P....
Dan Tanner
10-23-2014 05:50 PM
Today 05:06 AM
by Dan Tanner
2 160
hey everyone
robert8509
10-22-2014 08:16 PM
Yesterday 11:07 PM
by robert8509
7 242
raking leaves ?
robert8509
10-22-2014 09:19 PM
Yesterday 11:05 PM
by robert8509
9 300
new to the forum
madmedic8575
Yesterday 02:52 PM
Yesterday 02:52 PM
by madmedic8575
0 72
Lawn Care business...
crieg122
10-23-2014 01:23 PM
Yesterday 01:11 PM
by Steve
4 210
Pressure Washing Like a...
TNTurf
08-01-2014 11:47 PM
Yesterday 01:00 PM
by Steve
11 913
12 Years in Business!
Chilehead
10-23-2014 08:07 AM
10-23-2014 11:08 PM
by Chilehead
2 165
Cheapskate Landlord...
Mr. Mow
10-20-2014 06:33 AM
10-23-2014 05:55 PM
by biglee
13 476
Hi from SoCal
Jmoney
10-23-2014 11:29 AM
10-23-2014 12:51 PM
by Steve
1 134
Workmans compensation...
CDLAWNCARE
10-15-2014 08:05 AM
10-23-2014 12:33 PM
by Steve
5 587
Pda
stevef1201
10-18-2014 02:05 PM
10-23-2014 06:12 AM
by ringahding1
4 415
Leaf Box & Loader Set...
ringahding1
10-21-2014 06:20 AM
10-23-2014 05:13 AM
by ringahding1
5 306
Hello, from TEXAS
sanchez5
10-17-2014 09:56 PM
10-22-2014 01:27 PM
by Steve
6 483
Organic Lawn Care...
NHray
10-17-2014 06:05 PM
10-22-2014 01:23 PM
by Steve
3 459
Hi Steve From West...
Mr. Mow
10-21-2014 01:59 PM
10-22-2014 01:19 PM
by Steve
1 232
Help a brother...
tbtigers03
09-28-2014 11:41 AM
10-22-2014 08:51 AM
by ringahding1
12 1,597
first year update
cmdlawncare
08-12-2014 05:41 PM
10-22-2014 07:47 AM
by ringahding1
4 1,428
What parts do you carry...
Just for Cuts
10-17-2014 09:08 AM
10-21-2014 01:36 PM
by Mr. Mow
16 729
Jungle to Beautiful
stevef1201
10-17-2014 09:54 AM
10-21-2014 01:26 PM
by stevef1201
11 584
These are the days on...
ExtremeLawncareServices
03-22-2014 09:12 AM
10-21-2014 01:19 PM
by ExtremeLawncareServices
158 11,517
Sunny Beach Tennis...
SGL1
10-19-2014 11:24 PM
10-21-2014 01:04 PM
by SGL1
4 334
Have you ever had to...
SouthernRootsLawnCare
07-26-2014 02:41 PM
10-20-2014 08:34 PM
by biglee
10 1,907
Look out Bob Villa -...
Mr Dave
09-30-2014 10:06 AM
10-20-2014 05:42 PM
by SGL1
7 1,392
how to fi d commercial...
mchampion319
10-19-2014 09:50 PM
10-20-2014 04:41 PM
by Steve
1 298
Hello From Tennessee
mrmann901
10-17-2014 10:02 PM
10-20-2014 04:24 PM
by Steve
1 370
questions on order to...
jack2048
10-13-2014 11:15 AM
10-20-2014 03:27 PM
by Mr. Mow
15 823
This sucks...
Matther777
09-18-2014 04:56 PM
10-20-2014 02:14 PM
by Steve
14 2,287
Cement mixer
KevinsLawns
10-15-2014 08:03 PM
10-20-2014 02:11 PM
by Steve
7 563
Hello ! New guy Rob here
RWorthley1
10-17-2014 04:05 PM
10-20-2014 02:09 PM
by Steve
1 403
Snow Blowing
gwilson98
10-12-2014 02:21 PM
10-17-2014 02:51 PM
by Steve
6 741
Spreading Weeds?
WesleySnips
07-27-2014 09:46 PM
10-17-2014 07:49 AM
by SGL1
6 1,047
Grasswhoopins.com Anyone...
GRASS WHOOPINS
06-21-2011 11:38 PM
10-16-2014 01:30 PM
by ExtremeLawncareServices
42 9,416
I Want to buy old...
ExtremeLawncareServices
10-10-2014 10:04 PM
10-15-2014 09:12 PM
by ExtremeLawncareServices
6 765
Say Hello !!!
Steve
03-19-2007 11:18 AM
10-15-2014 06:43 PM
by NHray
1,190 340,417
Do you find weed eating...
chuck2s
10-15-2014 02:10 PM
10-15-2014 02:10 PM
by chuck2s
0 488
Incorporating &...
WesleySnips
10-01-2014 09:39 PM
10-15-2014 01:37 PM
by kslawn
20 1,591
Falling into business
stellarmowing
09-28-2014 04:35 PM
10-15-2014 05:57 AM
by ringahding1
8 1,596
Apartment Complex and...
lxarth
06-22-2011 01:10 PM
10-14-2014 06:25 PM
by jrs.landscaping
42 9,696
I LOVE hedge trimming
stevef1201
10-13-2014 09:05 AM
10-14-2014 01:06 PM
by Steve
5 620
Help with seeder...
ExtremeLawncareServices
10-09-2014 07:39 AM
10-13-2014 08:09 PM
by ExtremeLawncareServices
5 781
The Market watch
WesleySnips
10-12-2014 08:47 PM
10-13-2014 05:40 PM
by SGL1
3 625
Help pricing a large...
Bradcook21
10-07-2014 06:49 AM
10-13-2014 02:00 PM
by Steve
7 974
leaf removal
Double J LLC
10-03-2014 04:24 PM
10-13-2014 06:46 AM
by Billy Goat
19 1,626
Acerage Rake
acrajchel
04-23-2014 07:23 PM
10-12-2014 10:53 PM
by SGL1
2 938
John Deere z235 Deck
WesleySnips
09-29-2014 06:02 PM
10-12-2014 06:20 PM
by kslawn
25 1,757
Credit card contract
SGL1
10-06-2014 05:31 PM
10-12-2014 03:40 PM
by SGL1
18 1,164
Truck craft dump bed...
ExtremeLawncareServices
10-04-2014 08:41 PM
10-10-2014 11:35 AM
by Steve
7 1,069
» Popular Tags
4wd apartment bid apartment lawn care estimate applying bob villa bush charge christmas commercial deliquentaccounts demonstration exmark ferris first truck georgia gopherhaul gravely hardscapes hills holiday honda how much to charge how to hydraulic labor cost landscape services lawn lawn care lawn care busines plan lawn care business book lawn care business podcast lawn care business seo lawn care business show lawn care business website lawn care business website seo lawn care seo lawn care website lawn care website seo lighting brass outdoor lights managing a lawn care business marketing mechanic monthly mowing mulch mulch price new business patio install podcast property management company push versus ride savannah scag scag v-ride seo shell snow plowing starting a business starting a lawn care business start up lawn care business stihl sulky toro tractor auger trailer mate pro tree truck new used landscape walker won't return wright stander rh
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:53 AM.


(C) 2011 Riggs Publications - Terms of use & Privacy Policy

All times are GMT -5. The time now is 10:53 AM.

(C) 2011 Riggs Publications - Terms of use & Privacy Policy