Re: PHP or Javascript

Originally Posted by
cybrax
To be honest, you'll need to use both PHP and Javascript.
PHP for the form to email side of things and javascript for menu and galleries.
The real answer to the question is both, of course -- but don't ever require your users to use JavaScript. In this case (on x10Hosting), you would build a PHP site that does everything you need the site to do, including the image galleries. If you really want to do things right, the site should be completely usable (if ugly) without any CSS or JavaScript at all. You can then modify the pages you have created with (first) CSS, to make the site more attractive and define "activity areas" clearly to make the site more usable, then JavaScript to make the application more responsive in the browser (by preloading images, doing the gallery paging on a single page, validating form data in the browser, and so on). Not only does that make Google (and other web crawlers) happy, it means that more users can access and make use of the site on more devices.
“Beware of bugs in the above code; I have only proved it correct, not tried it.” --Donald Knuth
"It was as if its architects were given a perfectly good hammer and gleefully replied, 'neat! With this hammer, we can build a tool that can pound in nails.'" -- Alex Papadimoulis (on TheDailyWTF.com)