Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
October 24, 2005, 12:16 pm
rate this thread
I would like to open to the forum to discuss...
<include> for information contained on every page?
I have a header in a .js file on every page of my site:
document.write("<a href=\"index.html\">Home<\/a> | ");
document.write("<a href=\"about.html\">About<\/a> | ");
document.write("<a href=\"bio.html\">Biography<\/a> | ");
but the next problem,
.js headers and footers, then how can I expect them to fill in a form
Is there a way to account for all users and their browsers, or do I aim
For your consideration.
to do taint checking and further validation server side. Crackers can
easily subvert client side checks.
The client side checks will save a few moments for visitors who have
Yes, use server side programming. Perl/CGI (my favorite) or PHP are
common. A few services are also starting to support Python and Ruby.
There are also some monopolized solutions from Mordor$oft, whose names I
shall not utter here. <dog howls in the background> For headers and
footers that repeat on each page, you can use a preprocessor, generate
the pages server side, or use SSI (which is also a way of generating
pages server side).
I believe that many people avoid server side solutions because they
think it will somehow be too hard (it's not), or they don't have
privileges on their host. I can only say -- get a host that allows you
to do server side programming, and start collecting information on
server side programming.
Pro. You can skimp on your server.
whatever browser came with my cellphone) won't get the data.
convenient (or perhaps more fun) for users. When it comes to
ensuring information is available, and sanity checking data the user
provides then you MUST do that on the server.
 "Oh, you didn't fill in an email address, the server's going to
reject this anyway so I'll save you the round trip" does qualify.