Search

Is there a way to automaticly create a an entry, containing the URL parameters of a page?

Say I have a URL like this:

http://mysite.com/enterdata/?id=123&data=asdf

How can I make a entry containing the data, and also check that the ID isn't already used?

You might want to look at creating a custom event.

Your event could look for the presence of the id GET param name which triggers the event, then checks against the DB to see if ID already exists before creating the entry.

Before digging deeper into custom events, I'd suggest looking at Symphony's built-in events first and see how they work.

Furthermore, a note of caution: using GET method to modify the DB can be risky and prone to exploitation, so be sure to take due care with it.

Okay so I looked into it somewhat, however I not a PHP person at all. Can you show me what automatically triggering the event would look like?

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