My new website

Messages
1,217
Name
Robert
Edit My Images
Yes
After a lot of sweat and tears. I have managed to nearly finish my website.

Robertstrachan.com

Its amazing what you can do by following tutorials on the net:)

The contact page doesnt work though, any php people know where I'm going wrong?
 
Hey, that's not too bad.

It's a shame that your logo at the top of the blog doesn't link back to your home page. Ideally the navigation would be consistent throughout.

As for the contact form, are you sure PHP is installed and working on your server? I assume you're using a PHP form handler? It's a good way but make sure you protect the form from malicious use. A hacker could inject extra lines and use your form to send email.

Personally, I'd do without the bother and just list your email address, business address and phone number.
 
according to cpanel its php 5.2 thats on my hosts server. this is the code that I am using...

/* Data Variables */

$email = $_POST['email'];
$name = $_POST['name'];
$comments = $_POST['comments'];



$body = <<<EOD
<br><hr><br>
Name: $name <br>
Email: $email <br>

Comments: $comments <br>
EOD;

$headers = "From: $email\r\n";
$headers .= "Content-type: text/html\r\n";
$success = mail($webMaster, $emailSubject, $body, $headers);


/* Results rendered as HTML */

$theResults = <<<EOD
<html>
<head>
<title>sent message</title>
<meta http-equiv="refresh" content="3;URL=http://www.robertstrachan.com/contact.htm">
<style type="text/css">
<!--
body {
background-color: ##000000;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 20px;
font-style: normal;
line-height: normal;
font-weight: normal;
color: ##FFFFFF;
text-decoration: none;
padding-top: 200px;
margin-left: 150px;
width: 800px;
}

-->
</style>
</head>
<div align="center">Your email will be answered soon as possible!
You will return to Robert Strachan Photography in a few seconds !</div>
</div>
</body>
</html>
EOD;
echo "$theResults";
?>

This is called from the contact page. Could it be the mail command that my host is blocking? I read somewhere that to stop spam, some hosts dont allow this?
 
Well sadly I'm not a PHP guru and Google throws up very few answers for this error.

I think the first port of call should be your web hosts.
 
Very nice Rob, I'm impressed :thumbs::thumbs:

Can't offer any advice on contact page though.

Not sure you needs your 'tags' visible on your 'about' page ?
 
Hey, that's not too bad.

It's a shame that your logo at the top of the blog doesn't link back to your home page. Ideally the navigation would be consistent throughout.

As for the contact form, are you sure PHP is installed and working on your server? I assume you're using a PHP form handler? It's a good way but make sure you protect the form from malicious use. A hacker could inject extra lines and use your form to send email.

Personally, I'd do without the bother and just list your email address, business address and phone number.

I will have to try and modify the wordpress template to add the link to my homepage.

Would it be better not using the php at all then if it can be compromised?

would a simple mailto work better?
 
Very nice Rob, I'm impressed :thumbs::thumbs:

Can't offer any advice on contact page though.

Not sure you needs your 'tags' visible on your 'about' page ?

what do you mean by 'tags' les?
 
at worst...for now add a mailto: link to contact :)
 
I'm impressed you got lightbox to work, i could never do it!
Not sure if i like the low quality home page image or blue link rollovers...
Love your gallery chooser, built yourself or downloaded?
 
what do you mean by 'tags' les?

10-09-2009%2023-09-11.jpg
 
Nice site and some fantastic images. I would love my landscape images to come out like yours.


Captions saying where the images were taken from would be a good addition to the site imo.
 
Try changing the form action tag to this:
Code:
<form action="contactformprocess.php" method="post" name="form1" id="form1">

The website looks good! However the image on the home page looks a little out of place and flat (imo) - perhaps it needs a border to lift it out a bit and add some depth between the website and the image.

Good job! :)

Edit: Also agree that the banner/logo on the blog should link to the website.
 
I'm impressed you got lightbox to work, i could never do it!
Not sure if i like the low quality home page image or blue link rollovers...
Love your gallery chooser, built yourself or downloaded?

It's not lightbox, but thickbox. Lightbox never resized pics to suit different screen sizes, whereas thickbox does. The gallery chooser is a web widget from dreamweaver


Thise tags, I thought you meant on the main website, not the blog:bonk:

Nice site and some fantastic images. I would love my landscape images to come out like yours.

Captions saying where the images were taken from would be a good addition to the site imo.

The captions are on the images but it seems when you skip through the gallery using next/prev they dont show up on any after the first one:thinking:

You did it in the first Landscape and it works.
Agree that it would be a good addition for the remainder.
It should show up on them all but doesn't.

Try changing the form action tag to this:
Code:
<form action="contactformprocess.php" method="post" name="form1" id="form1">
The website looks good! However the image on the home page looks a little out of place and flat (imo) - perhaps it needs a border to lift it out a bit and add some depth between the website and the image.

Edit: Also agree that the banner/logo on the blog should link to the website.

I'll try the form action tonight and change the frontpage. The Blog banner will be a bit harder as I cannibalised an existing template to make mine. Whether I can figure out what and where to add it to link back is another matter:)
 
Steven, you are a star:thumbs:

once I added the .php tag to contactformprocess it worked perfectly! Now to try and fix some of the other stuff...
 
New indexpage image with border added....
 
Nice image on that first page. Personally I think the gallery navigation is a little bit too 'tricksy', but that's just me.

If it were my site, as I mentioned before, I'd want the blog to match the rest of the site.

Nitpicking though, and a great effort to showcase some really fine work.
 
Nice image on that first page. Personally I think the gallery navigation is a little bit too 'tricksy', but that's just me.

If it were my site, as I mentioned before, I'd want the blog to match the rest of the site.

Nitpicking though, and a great effort to showcase some really fine work.


Thanks for the comments. I went about it the wrong way. I have had the blog up and running for the past 7 months while I decided what to do with the website. So when I finally decided to get the rest of it done, I used the wordpress template as the backdrop for the rest of the site.

If only I was better at web design...and coding;)
 
missing names with next/prev in lightbox fixed. Well not fixed, but next/prev removed.:thumbs:
 
I was lost after clicking on Blog as I was unable to go back to the home page until I clicked the back button on the browser.

You may subscribe to php forum to get most of your unanswered queries with some searching and head scratching :)

W3C Validator popped up 8 errors so you wanna check why they are hanging around.
 
I was lost after clicking on Blog as I was unable to go back to the home page until I clicked the back button on the browser.

You may subscribe to php forum to get most of your unanswered queries with some searching and head scratching :)

W3C Validator popped up 8 errors so you wanna check why they are hanging around.

The headder on the blog is one I need to fix right away. I have fixed one of the validation errors, the rest are related to statcounter and I'll fix them later.

I'll take a look at the php forum for ideas.:)
 
Not a bad starter site, well done.

Thanks. I had no knowledge of html, css or php a couple of weeks ago. This is all taught from tutorials on the net. Granted some have been copied 'parrot fashion' but it shows that there is lots out there to help.
 
Thanks. I had no knowledge of html, css or php a couple of weeks ago. This is all taught from tutorials on the net. Granted some have been copied 'parrot fashion' but it shows that there is lots out there to help.

Did you visit any particular sites you may recollect to learn php, css & html? There's always something to learn more :nuts:
 
This is one I used quite a lot. You can alter the code in the browser and see the results instantly which was a big help in trying to understand stuff.

I also used the online tutorials on this site. This is where I got the contact page code from.

There are also a lot of tutorials on youtube that I had a good look through too.
 
Back
Top