Importing PHP into Template

4 views
Skip to first unread message

philips

unread,
Jun 25, 2009, 12:56:58 PM6/25/09
to Web Authoring
I am having trouble importing my Google Map Club Locator (Store
Locator) into my existing HTML template with the code below.

<?
require_once "phpGoogleStoreLocator.php";
?>
</div></td></tr></table>
<?
require_once "phpGoogleStoreLocator-javascripts.php";
?>

However, IE7 will not open the map search results page due to an
script error. IE8 will with a script error pop-up, and of course
Safari and Firefox will not have issues opening it.

Major error I cannot seem to around is the fact that the Google Map
page contains a Head section. When I remove that or move the
Stylesheet Link to where I think it should be then it breaks it and
the map function does not work.

<? // Include the stylesheet for our phpGoogleStoreLocator
application ?>
<link rel="stylesheet" type="text/css" href="/club/
phpGoogleStoreLocator-css-stylesheet.css" />

I'd like to keep the 5 column layout and import the map into the
center column. I can send the pages to you offline as there is a lot
of code. (modelyacht.org/club/)

Thanks in advance.


RobS

unread,
Aug 5, 2009, 8:15:07 AM8/5/09
to Web Authoring
When I run that page through BBEdit's syntax check, it throws 5 errors
and som warnings. When I give it a doctype (XHTML Transitional because
there is an XML-style tag there already) it throws 27 errors and a
warning. One way or the other, the code has to be fixed before you can
expect it to run properly. Start with the fact that the HEAD element
is down inside a TABLE>TR>TD>DIV set of elements. In fact that first
DIV is an orphan itself. I wonder if I picked up an in-process version
of the page?

I doubt that Google's code won't run in IE 7 & 8, and I'm not saying
that because we're in a Google group here. ;-) I say it because it's
likely they've checked it a few thousand times already.

Rob

RobS

unread,
Aug 5, 2009, 8:22:45 AM8/5/09
to Web Authoring
I'm gradually waking up. ;-)

I see now that the HEAD element is one you were having trouble with.
But in that case, there was no proper HEAD element in the page I saw,
just the redundant one down in the content.

As an aside, I wonder about the word capitalization in a few of the
sentences. That has no effect on how the code runs of course, but it
makes it extremely hard to read.

Finally, I've just noticed that your question was asked about 6 weeks
ago. But since it remains unanswered, I might as well stumble onward.

Rob
Reply all
Reply to author
Forward
0 new messages