Re: Serving pages based on user input
| From: | Jochem Maas | Date: | Sun, 24 Aug 2008 20:02:19 +0000 |
| Subject: | Re: Serving pages based on user input | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-278600@lists.php.net to get a copy of this message | ||
tedd schreef:
At 10:02 PM -0700 8/23/08, Prasad Chand wrote:WTF? do you have any idea why we write scripts as opposed to endless copy/pasting of plain (X|(x)HT)ML? and really you don't need to generate 50 pages, merely 50 URLs that end up triggering a single script (which in turn generates output based on the request URL).Thanks for that information. But in my case I need to serve pages based on selection of US states. There are 50 of them, so generating pages dynamically would have been a nice idea.
Really, there are 50 of them!?!? :-)unofficially there are 51, well Tony Blair would like to think so.
You don't have to generate 50 pages dynamically to do it -- try this: http://webbytedd.com/bbb/map/ That demo is done with just pure css -- no php nor javascript. Plus each one of those States can be linked to another page -- AND-- it is user friendly, validates, accessible, and SEO friendly. What more could anyone want?a version of europe actually :-P seriously how much time did you spend hacking that together? and how did your eyes bleed?
If you don't know php, then I think the best way to ask a question on this list by telling us what you want to do rather than asking specific php questions trying to do something they way you think it might work.no. the best thing would be to RTFM and STFW for a few years, but hey hell will freeze over first ;-)
Cheer, tedd