A
A
Andrey2018-04-03 14:03:56
Web development
Andrey, 2018-04-03 14:03:56

Transition from the product page to the payment page with data?

Good. Don't throw stones hard. There is a page with products and their characteristics (1.html) and a payment page (buy.php), for example:

<form action="/buy.php" method="post">
<table cellspacing="2" cellpadding="2" align="center" width="100%" border="1">
    <tbody>
        <tr>
            <td>id</td>
            <td>товар</td>
            <td>цвет</td>
            <td>вес</td>
            <td>страна</td>
            <td>доставка</td>
            <td>цена</td>
            <td><input type="radio" name="productID" value="1" checked="checked"></td>
        </tr>
        <tr>
            <td>345</td>
            <td>товар1</td>
            <td>синий</td>
            <td>564гр</td>
            <td>китай</td>
            <td>есть</td>
            <td>890р</td>
            <td><input type="radio" name="productID" value="2"></a></td>
        </tr>
        <tr>
            <td>323</td>
            <td>товар2</td>
            <td>желтый</td>
            <td>756гр</td>
            <td>россия</td>
            <td>нет</td>
            <td>770р</td>
            <td><input type="radio" name="productID" value="3"></td>
        </tr>
    </tbody>
    </table>
  <br>
  E-mail address: <input type="text" name="email">
  <br>

    <input type="submit" value="Proceed to buy">

</form>

The user marks the desired product, fills in the email field, clicks submit. Goes to buy.php
What should be written in the product and payment page so that the data of the selected product is displayed on the payment page?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question