Z
Z
Zholtayev8082016-09-02 11:48:24
PHP
Zholtayev808, 2016-09-02 11:48:24

2 aciton on one form, how to do it?

There is one feedback form on the landing page. Clients enter a name. phone number and email. Through php, the mail() handler is sent to the mail. Now the form is integrated with the email mailer and now we need to add one more aciton to the form. So that direct email is entered into the mailer's email database. PHP is not good. Help me please.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
C
Cat Anton, 2016-09-02
@Zholtayev808

Now we need to add another aciton to the form. So that direct email is entered into the mailer's email database.

What does it mean to add another action to the form? Are you talking about the action attribute of the form tag? Or about the controller action?
Another action is not needed here, add it to the database in the same place where you call mail ().

A
Alexander Yerko, 2016-09-02
@cms_admin

Without PHP, you won't succeed, you need to extend the function that sends email, so that before or after sending the email, the email address is written to the database.

K
Kjuri, 2016-09-03
@Kjuri

read the documentation of the mailer, they probably have some kind of api
or ajax - first send it to the mail, and then, if there is no return false in ajax - it will follow the main link of the form, i.e. here action="//mt.us14.list-manage.com/subscribe/post?u=0e085330dcaf81168f915031a&id=6fab907b7f"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question