Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Form post action not working properly
Hi there, I am trying to send form actions to “cart” section which uses a specific “cart” page. I am landing on the front page even if the url in the address bar is correct.
I am using <txp:site_url />cart for the action attribute.
Any ideas?
Offline
Re: Form post action not working properly
After a bit of playing around, I think there is a problem with the way TXP handles requests from forms. Doesn’t matter what page I am targeting with the action attribute from within a form, I still land on the front page. If I go to folders or files which aren’t controlled by TXP’s index.php, it seems to be working fine. Is this a bug?
Offline
Offline
Re: Form post action not working properly
K, latest findings: as soon as some data is passed through POST, TXP spits 404. It’s definitely something to do with the way TXP handles page requests. Devs, help would be really appreciated here!
As a sidenote, got the latest SVN and performed a clean install.
Offline
Re: Form post action not working properly
This must have been one of the very few posts in which the original poster keeps replying to himself over and over again and, in the end, manages to sort things on his own grin.
K, TXP seems to be fussy with the way forms are formatted. All attributes have to be there (name, id, value). I was missing the id attribute…
Anyways, cheers ppl ;).
Offline
#6 2006-07-15 11:10:30
- els
- Moderator

- From: The Netherlands
- Registered: 2004-06-06
- Posts: 7,458
Re: Form post action not working properly
gerhard wrote:
This must have been one of the very few posts in which the original poster keeps replying to himself over and over again and, in the end, manages to sort things on his own grin.
Ah, so this is the way to go: just don’t answer questions, and people will find out on their own eventually. How quiet this forum will be…
But glad you solved it :)
Offline
Offline
#8 2006-07-16 02:10:36
- zem
- Developer Emeritus

- From: Melbourne, Australia
- Registered: 2004-04-08
- Posts: 2,579
Re: Form post action not working properly
TXP seems to be fussy with the way forms are formatted. All attributes have to be there (name, id, value). I was missing the id attribute…
Can you give an example please?
Alex
Offline
Re: Form post action not working properly
Hi zem,
I tried to re-produce the problem but no matter what I do, it just works! I am starting to think there was something wrong with Apache or PHP. I did have problems stopping & starting the MySQL server (I’m running MAMP under OS X) & just restarted the OS. Can’t reproduce the problem since.
If it comes back, will let you know. Cheers guys, Gerhard.
Offline
Pages: 1