Re: Text-links using POST ?



"Trammel" <Me@xxxxxxxxxx> writes:
Hi, Im just about to start developing a new website for personal / friend
use that may be accessed by other people all over the web. I was sitting
thinking through designs for the pages, etc when I came across a thought....

...why show the visitor loads of junk just because Im using A-href type
links?

Is there a way to create a text-link that will request a page using POST
instead of GET?

Maybe from within a form or using CSS to modify the behavior of links?

It's do-able, somewhat unreliably, with Javascript. *However*, there
are better ways to do this sort of thing (especially since
POST-retrieved pages can't be bookmarked, can't be retrieved by search
engines, generate browser warnings on reload, and have other
undesirable properties for things that you actually want to GET)

What you're really asking is: Can I have neater looking URLs for GET?
The answer is yes - either by modifying the web pages a bit to take
better URLs, or by using mod_rewrite to convert between a nice and an
ugly form [1].

Can you give a bit more details about the page, and about the sort of
URLs you've currently got? Best of all, if development's far enough
ahead, can you give us a URL for it? If not, what about a URL for
something similar?

[1] For example:
RewriteRule ^([a-zA-Z0-9\ -]+)/([0-9]+)/.* /?category=$1&article=$2 [PT]
rewrites a requested URL of the form
/articles/101/writing_HTML
to a server-processed URL of
/?category=articles&article=101

--
Chris
.



Relevant Pages

  • Re: Can anyone explain this?
    ... after calling tst, you can observe what's happening to its value: ... SORT is allowed to modify the list structure of a list passed to it. ... (defun tst (x xs) ...
    (comp.lang.lisp)
  • Re: Copy/Paste
    ... Then modify the code to ... determine the criteria for the number of rows to insert. ... BTW, this sort of ...
    (microsoft.public.excel.programming)
  • Re: Can anyone explain this?
    ... If you modify the format statements a little bit to output the value of *a* after calling tst, you can observe what's happening to its value: ... SORT is allowed to modify the list structure of a list passed to it. ...
    (comp.lang.lisp)
  • Re: calculating Average Value with exceptions
    ... Won't that design require you to modify the formulas (and queries and forms ... and reports and ...) ... What sort of VBA code might help to sort it out? ...
    (microsoft.public.access.modulesdaovba)