H
H
HellCode2020-05-19 19:56:08
PHP
HellCode, 2020-05-19 19:56:08

How to pass parameters via ajax?

there is a form:

<form method="post" action="index.php?action=add&code=<?php echo $row["code"]; ?>">
</form>


how to pass these parameters via ajax?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ilya Saligzhanov, 2020-06-01
@Le_Traceur_Snork

https://api.jquery.com/jquery.ajax/
$.ajax({
data: {/*array of format parameters [key: value, key2: value2]*/}
})

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question