HTMLForms action parameter in OTRS

English! place to talk about development, programming and coding
Post Reply
chohman
Znuny newbie
Posts: 17
Joined: 03 May 2013, 15:40
Znuny Version: 4.0.7
Company: GetCon GmbH

HTMLForms action parameter in OTRS

Post by chohman »

hi,

when im using the html-forms action parameter in otrs to link to a lokal otrs adress, it forwards me to index.pl.
in all other contexts the url forwards me correctly to my page.

<form action="?Action=AgentChecklistInstall" method="post">
=> index.pl
<a href="?Action=AgentChecklistInstall"
=> ?Action=AgentChecklistInstall

any hints what im doing wrong?
reneeb
Znuny guru
Posts: 5018
Joined: 13 Mar 2011, 09:54
Znuny Version: 6.0.x
Real Name: Renée Bäcker
Company: Perl-Services.de
Contact:

Re: HTMLForms action parameter in OTRS

Post by reneeb »

You're mixing GET and POST parameters

Code: Select all

<form action="?Action=AgentChecklistInstall" method="post">
should be

Code: Select all

<form action="" method="post">
<input type="hidden" name="Action" value="AgentChecklistInstall" />
Perl / Znuny development: http://perl-services.de
Free Znuny add ons from the community: http://opar.perl-services.de
Commercial add ons: http://feature-addons.de
chohman
Znuny newbie
Posts: 17
Joined: 03 May 2013, 15:40
Znuny Version: 4.0.7
Company: GetCon GmbH

Re: HTMLForms action parameter in OTRS

Post by chohman »

thanx for the rather fast reply ;). it works.
otrs 4.0.7, ITSM, Mysql. Ubuntu
Post Reply