Search

Hello,

One of my clients asked me to embed this newsletter form into a symphony form on his symphony website:

<form action="http://form.sitepackage.de/send.php" method="post">

  <label for="email">E-mail address</label>
  <input id="email" type="email" name="email"/>

  <label for="name">Name</label>
  <input id="name" type="text" name="name"/>

  <input id="domain" type="hidden" name="domain" value="example.com"/>
  <input id="id" type="hidden" name="id" value="newsletter-subscription"/>
  <button type="submit">Send</button>

</form>

Is this possible?

I noticed that Symphony forms follow a slightly different pattern, e.g. with an empty action attribute and very specific name attributes:

<form action="" method="post">

  ...

  <input name="fields[e-mail]" type="text" />

  ...

</form>

How can this be done?

Thanks for any help.

The action attribute states the URL where the browser sends the request. Leaving it to empty, uses current URL.

Symphony gives examples with empty action because the Event is attached to current Page, so the form should be submitted to this current Page.

For your case, simply copy+paste the form code and all form fields will be sent to action URL for processing.

Thanks for your help.

Yes, I've noticed that I can send a form in two different ways:

  • To a Symphony event or
  • To a hardcoded URL

The problem is that I would like to do both in one form.

Can this be done at all?

Uhh ... :)

Well, send the form as usual to Symphony and from Event make a cURL request to remote URL.

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