Results 1 to 2 of 2
Thread: Clearing the GET query string
Aug 12, 2009, 12:32 #1
Clearing the GET query string
I'm working my way through Kevin Yank's new edition of "Build Your Own Database Driven Web Site Using PHP & MySQL" and I love it. Great stuff.
But I ran into a minor problem. In chapter four, Mr. Yank is explaining how to submit a form to the same page using the following:
<form action="?" method="post">
When I try this out on my Windows with IIS, I get "The page cannot be displayed." Are there any reasons this wouldn't work? Is there some other way to clear the query string off of a URL? (Other posts simply said, "No," but Mr. Yank seems pretty confident that there is.)
(Also, maybe this should have gone in a different forum, but I stumbled upon it in a PHP context, so my apologies.)
Aug 12, 2009, 12:36 #2
- Join Date
- Jul 2008
- 0 Post(s)
- 0 Thread(s)
Your action is the script it is posting the values to. "?" isn't a file. With POST you aren't putting anything in the URL.