Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-07-13 16:25:06

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

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

#2 2006-07-14 07:00:23

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

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

#3 2006-07-15 08:16:54

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

Re: Form post action not working properly

No answers? Really!?

Offline

#4 2006-07-15 09:06:52

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

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

#5 2006-07-15 09:17:03

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

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

#7 2006-07-15 11:32:50

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

Re: Form post action not working properly

Indeed!

Cheers, Gerhard.

p.s.: not everyone is as stubborn as me though :).

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

#9 2006-07-16 15:29:19

gerhard
Plugin Author
From: London, UK
Registered: 2005-06-29
Posts: 409
Website

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

Board footer

Powered by FluxBB