Y
Y
YakovSpb2021-03-03 12:39:09
AJAX
YakovSpb, 2021-03-03 12:39:09

How can I submit an action on a form twice?

I need to send an action
on two links https://ipovipclub.ru/mail/subscribe
and here /mail.php

<form action="https://ipovipclub.ru/mail/subscribe" method="POST" accept-charset="utf-8">
                <input class="input" type="text" name="name" id="name" placeholder="Имя&hellip;"/>
                <br/><br/>
                <input class="input" type="email" name="email" id="email" placeholder="Email&hellip;"/>
                <br/><br/>
                <input class="input" type="tel" name="phone" id="phone" required placeholder="Телефон&hellip;"/><br/><br/>
                <input type="hidden" name="list" value="r8r5pQITxzDRBdu56RjLag"/>
                <input type="hidden" name="subform" value="yes"/>
                 <input class="button button-primary button-block button-shadow" type="submit" name="submit" id="submit" value="Получить доступ">
                </form>

Answer the question

In order to leave comments, you need to log in

2 answer(s)
L
Lander, 2021-03-03
@usdglander

In https://ipovipclub.ru/mail/subscribe connect /mail.php

P
part_os, 2021-03-03
@part_os

this solution "smells", what is the difference between your form acceptance processing in different methods? most likely you just need to call 2 services for processing the same request in one controller. not to invent it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question