|
|
|
Web Template help
Search Engine Optimization and Website Design Discussions.
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.
|
 |
|

12-28-2004, 05:31 AM
|
|
Members
|
|
Join Date: Feb 2004
Posts: 20
Rep Power: 10
|
|
|
|
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
|
|
|

12-29-2004, 07:02 PM
|
|
Members
|
|
Join Date: Dec 2003
Posts: 47
Rep Power: 10
|
|
Lawn care business tips
|
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.
|
|

12-31-2004, 07:04 AM
|
|
Members
|
|
Join Date: Feb 2004
Posts: 20
Rep Power: 10
|
|
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 *
|

12-31-2004, 04:18 PM
|
|
Members
|
|
Join Date: Dec 2003
Posts: 47
Rep Power: 10
|
|
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.
|

01-01-2005, 05:51 AM
|
|
Members
|
|
Join Date: Feb 2004
Posts: 20
Rep Power: 10
|
|
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
|

01-01-2005, 09:49 AM
|
|
Members
|
|
Join Date: Dec 2003
Posts: 47
Rep Power: 10
|
|
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
|
|
Members
|
|
Join Date: Feb 2004
Posts: 20
Rep Power: 10
|
|
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 
|

01-02-2005, 09:22 AM
|
|
Members
|
|
Join Date: Dec 2003
Posts: 47
Rep Power: 10
|
|
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
|
|
Members
|
|
Join Date: Feb 2004
Posts: 20
Rep Power: 10
|
|
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
|
|
Members
|
|
Join Date: Dec 2003
Posts: 47
Rep Power: 10
|
|
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.
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is On
|
|
|
» Landscape Product Categories |
|
» Free Lawn Care Business Flyer, Door Hanger, Contract & Logo Templates |
|
|
» Recent Threads |
| |
RatingTitle, Username, & Date |
Last Post |
Replies |
Views |
 |
Video, includes a little...
CHEESE2009
Yesterday 11:21 PM
|
|
0 |
32 |
 |
ethics
t-10yrs2retire
Yesterday 01:47 PM
|
|
3 |
107 |
 |
Bi-weekly question
schnide
05-15-2013 10:58 AM
|
|
17 |
557 |
 |
Very overwhelmed
xandrew245x
Yesterday 09:31 AM
|
|
6 |
168 |
 |
New to Gopher
NOLS GA
04-28-2013 10:42 PM
|
|
7 |
913 |
 |
Truck trimmer racks
SECTLANDSCAPING
06-16-2012 05:56 PM
|
|
21 |
3,136 |
 |
no-compete agreement
CDLAWNCARE
05-18-2013 12:45 AM
|
|
5 |
198 |
 |
Trimmer Line
Shark1611
05-16-2013 07:56 PM
|
|
9 |
324 |
 |
Hello to all!
frankygarza
Yesterday 08:59 AM
|
|
0 |
56 |
 |
New Toro Super Recycler...
Hedgemaster
03-20-2011 12:55 AM
|
|
134 |
25,554 |
 |
It's FRIDAY!!!
CHEESE2009
05-17-2013 05:18 AM
|
|
3 |
226 |
 |
Yesterday, I had a...
LawnBoy0311
04-25-2013 05:30 AM
|
|
10 |
852 |
 |
When to mow, collect,...
cuttingedgeron
04-05-2013 01:06 PM
|
|
8 |
705 |
 |
Missing small amount of...
xandrew245x
05-13-2013 04:30 PM
|
05-18-2013 07:57 PM
by MBLC
|
17 |
606 |
 |
crossroads
djm2013
03-17-2013 08:43 AM
|
|
48 |
4,000 |
 |
The customer is ALWAYS...
cutnuplawnservice
05-18-2013 08:28 AM
|
|
1 |
176 |
 |
How I found TOO Many...
BLC7
01-11-2013 02:12 PM
|
|
62 |
4,648 |
 |
trailer leaf vac.
t-10yrs2retire
05-17-2013 10:44 AM
|
|
2 |
193 |
 |
Radio advertising
CDLAWNCARE
05-04-2013 06:26 PM
|
|
5 |
620 |
 |
New Beginner here...
LawnCareProfessional
05-14-2013 12:05 AM
|
05-17-2013 12:00 PM
by Steve
|
8 |
534 |
 |
Flower bed cultivation...
Emar
05-15-2013 04:41 PM
|
05-17-2013 11:42 AM
by Steve
|
5 |
287 |
 |
Code violations
Greg'slawnandlandscape
05-16-2013 12:11 PM
|
05-17-2013 11:39 AM
by Steve
|
8 |
323 |
 |
Moss in grass in the...
tk4454
05-16-2013 11:19 PM
|
05-17-2013 11:36 AM
by Steve
|
2 |
198 |
 |
problem #2..springs in...
t-10yrs2retire
05-11-2013 09:03 AM
|
05-17-2013 11:34 AM
by Steve
|
8 |
625 |
 |
Installing grass seed
thom
05-05-2013 06:35 PM
|
05-17-2013 11:29 AM
by Steve
|
7 |
770 |
 |
Hoping someone can help.
jasonw
05-10-2013 09:19 AM
|
05-17-2013 11:25 AM
by Steve
|
9 |
584 |
 |
1st video.
Grass Doctor
05-15-2013 05:52 PM
|
|
7 |
327 |
 |
Undercutters
jhamilton60@yahoo.com
05-15-2013 08:17 PM
|
|
12 |
397 |
 |
help pricing sod job
Jayls
05-15-2013 01:03 PM
|
05-17-2013 07:06 AM
by Emar
|
5 |
342 |
 |
Mulching
jeffcs
05-14-2013 02:17 PM
|
|
6 |
418 |
 |
Unreasonable Requests
brian'slawncare
05-06-2013 06:07 PM
|
|
29 |
1,492 |
 |
Things are looking...
Jayls
05-14-2013 09:28 AM
|
05-16-2013 11:43 AM
by Steve
|
7 |
421 |
 |
Say Hello !!!
Steve
03-19-2007 11:18 AM
|
05-16-2013 11:22 AM
by Steve
|
1,112 |
186,684 |
 |
White Riding Mower Help
osbornl1
05-09-2013 12:17 PM
|
|
4 |
572 |
 |
At Last!
Matther777
05-02-2013 05:51 PM
|
|
17 |
1,174 |
 |
Brush Mower
SECTLANDSCAPING
05-13-2013 06:04 PM
|
05-15-2013 11:43 AM
by Steve
|
7 |
432 |
 |
Court houses....
SouthallMowing
05-13-2013 11:42 PM
|
|
7 |
429 |
 |
Hello Everyone
hemiman
03-16-2013 06:45 PM
|
|
14 |
1,758 |
 |
Need Advice
Tony317
05-13-2013 10:16 PM
|
05-14-2013 01:17 PM
by Steve
|
2 |
354 |
 |
Starting up and using...
Southern83fire
05-12-2013 08:57 PM
|
05-14-2013 01:14 PM
by Steve
|
6 |
503 |
 |
problem #1...I think I...
t-10yrs2retire
05-11-2013 08:52 AM
|
05-14-2013 12:58 PM
by Steve
|
7 |
584 |
 |
Round Up in FL
JRB6250
05-13-2013 03:25 PM
|
05-14-2013 12:56 PM
by Steve
|
3 |
393 |
 |
Seo
superyards
05-10-2013 10:19 AM
|
05-14-2013 12:50 PM
by Steve
|
7 |
585 |
 |
Rubbing a Car
SNethercutt
04-28-2013 11:51 PM
|
|
14 |
1,133 |
 |
Help! Need opinions
LawnBoy0311
05-10-2013 11:26 AM
|
|
16 |
804 |
 |
A new way to quote?
LawnBoy0311
05-07-2013 06:12 PM
|
|
21 |
1,140 |
 |
Two for Two - Woo-Hoo!...
Hedgemaster
04-18-2011 09:37 PM
|
|
186 |
36,410 |
 |
Beginner question. Lawn...
WarriorLandscaping25
04-21-2013 07:38 PM
|
05-13-2013 02:16 PM
by Steve
|
10 |
1,331 |
 |
Belt tapping against...
donslawns
05-12-2013 10:56 AM
|
05-13-2013 01:08 PM
by Steve
|
2 |
407 |
 |
Help!
amfine1996
05-11-2013 02:42 PM
|
05-13-2013 11:51 AM
by Steve
|
1 |
426 |
|
All times are GMT -5. The time now is 04:26 AM.
|
All times are GMT -5. The time now is 04:26 AM.
|
| |
|
|
|
|
| |
| | |