Search

I have my extension add input-fields to the author-screen, but now I want to be able to use the extra POST-data to store information in the database. How can I get my POST-data?

$_POST['your-field-name']?

Yeah, that’s what I thought would work, but $_POST returns an empty array in my AdminPagePreGenerate-delegate (and also in my AdminPagePostGenerate-delegate).

Try $_REQUEST?

Doesn’t show my POST-data although it does show some other stuff like my URL and my PHP Session id.

Solved!

It appeared that I was using a wrong delegate. I used AdminPagePreGenerate, but InitaliseAdminPageHead works when collecting POST-data

Create an account or sign in to comment.

Symphony • Open Source XSLT CMS

Server Requirements

  • PHP 5.3-5.6 or 7.0-7.3
  • PHP's LibXML module, with the XSLT extension enabled (--with-xsl)
  • MySQL 5.5 or above
  • An Apache or Litespeed webserver
  • Apache's mod_rewrite module or equivalent

Compatible Hosts

Sign in

Login details