problem with repeat form posting

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Unipus
Forum Contributor
Posts: 409
Joined: Tue Aug 26, 2003 2:06 pm
Location: Los Angeles, CA

problem with repeat form posting

Post by Unipus »

pardon me, I must be drinkin' heavily from the retard juice today.

I've built a search form on the site. It works real good like. BUT, if you navigate to any other page and then try to go BACK to your search results, you get that nasty "resubmit form data?" prompt. It's bad and I want it to die.

I knew the solution to this problem two weeks ago; now I can't seem to remember a thing. Sigh.
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

IE bug

Code: Select all

header("Cache-control: private");
Unipus
Forum Contributor
Posts: 409
Joined: Tue Aug 26, 2003 2:06 pm
Location: Los Angeles, CA

Post by Unipus »

Yes. What are the other effects of using that? Any?
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

No sideeffects that I know of.

"You forgot to fill this in, please press this link to go back and..."-links works. Not using this, would likely reset all elements in the form when pressing the back button (or javascript history-1).
Unipus
Forum Contributor
Posts: 409
Joined: Tue Aug 26, 2003 2:06 pm
Location: Los Angeles, CA

Post by Unipus »

Hmm. I put it in. No change in behavior.
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

I must have been drinking the same as you, because I have no clue then... 2 weeks ago? Searched the forum? Could be hidden here somewhere...
Unipus
Forum Contributor
Posts: 409
Joined: Tue Aug 26, 2003 2:06 pm
Location: Los Angeles, CA

Post by Unipus »

I searched, didn't find anything particularly relevant. But then again, people around here often don't name their threads anything meaningful.

I'm really not even sure I was reading about the problem on this board... it could have been anywhere. I really wasn't in a programming mindset today. I guess it's google-hell time.
Unipus
Forum Contributor
Posts: 409
Joined: Tue Aug 26, 2003 2:06 pm
Location: Los Angeles, CA

Post by Unipus »

Still have not really found a solution to this problem. It puzzles me why Moz ignores it completely. Otherwise, I'd accept it as a security feature and move on.

Anyway, it seems like maybe the best thing is to rewrite the form to use GET instead? Grrr.
Unipus
Forum Contributor
Posts: 409
Joined: Tue Aug 26, 2003 2:06 pm
Location: Los Angeles, CA

Post by Unipus »

Well that was pretty easy. Onward and upward...
Post Reply