P
P
petermsc2021-06-09 13:03:35
css
petermsc, 2021-06-09 13:03:35

How to bind a second function to a button?

Hi everybody!
Such a question, on the site there is a button to which the function of sending data to the mail is already attached (using js and php), how to attach the function of switching to another page to the same button, that is, roughly speaking, I filled out the necessary information, clicked, the info went to the mail, and the user opened the payment page.
thanks in advance!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Kentavr16, 2021-06-09
@petermsc

Just write in the data sending function "if response from the server = success, then (and here register the transition to another page)

A
Arseniy Oguzov, 2021-06-09
@psy667

Write a redirect in the function where the data is sent. Show the code if you need more details

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question