Passing something through POST without involving the client
Posted: Sat Apr 26, 2003 6:29 am
On my site when you create a post or you write a comment, the script redirects to a purely server-side script that creates the HTML then redirects to the main page. The HTML-creating script sends nothing to the client so the user isn't even aware it's being called.
When something is posted, it redirects specifically to "index.php?View=##" where ## is the post ID number. This command shows that post (they're invisible initially).
But the problem of using the get method ("?View" in the URL) is that people can see it, and the problem with that is that they assume they can link to their post by copying that URL, which is incorrect. I want to hide View by using the Post method but don't know if I can do that, or how, using just a server-side script and no client-side stuff.
I know how to do it using the client; I can have an HTML form and use JavaScript to "submit" that form the instant the page loads. But I don't want any page to load. Am I making sense?
When something is posted, it redirects specifically to "index.php?View=##" where ## is the post ID number. This command shows that post (they're invisible initially).
But the problem of using the get method ("?View" in the URL) is that people can see it, and the problem with that is that they assume they can link to their post by copying that URL, which is incorrect. I want to hide View by using the Post method but don't know if I can do that, or how, using just a server-side script and no client-side stuff.
I know how to do it using the client; I can have an HTML form and use JavaScript to "submit" that form the instant the page loads. But I don't want any page to load. Am I making sense?