R
R
Ruslan Makarov2019-02-28 11:05:53
css
Ruslan Makarov, 2019-02-28 11:05:53

How to create a link form?

Hello!
Help me create a form for a link to payment:
5c77960f8bc29068858864.png
I showed on the screen:
123 - comment
55 - amount
Help create a form where you can specify the amount and comment.
Thanks in advance.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
H
Hanneman, 2019-02-28
@facepook

Here is a simple working example. Add other fields yourself in the image and likeness.

<body>
    <form action="https://касса.ру/merchant/forms.php" method="GET">
        <input type="text" name="targets" id="targets" value="123">
        <br>
        <input type="text" name="default-sum" id="default-sum" value="55">
        <br>
        <input type="submit">
    </form>
</body>

V
Vladimir Proskurin, 2019-02-28
@Vlad_IT

You create a form with action attributes equal to the path to forms.php, in method="get", and throw each parameter from the URL into some input in this form. Those parameters that do not need to be displayed are thrown into input type="hidden".

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question