문제

I have a script that runs a PHP MySQL query with information gathered via a form. The query works fine but the weird thing is that it wont update the search variables if someone refreshes and enters new input into the form.

I can actually see the correct variables in the URL but they are just not being repeated in the query.

The really odd thing is if I go and edit the snippet in the ModX back end - even if its just adding a comment - save it and refresh the page it works until I try a new search again.

Would anyone know whats happening here?

도움이 되었습니까?

해결책

Is your form snippet cached? You'll need it uncached to have it run fresh every time:

[[!snippet]]

That goes for any placeholders too:

[[!+placeholder]]
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top