Hello, I make a website - something like a store. When ordering, you need to specify the mail <input type="text" name="mail" size="20"> , everything is fine, it sends a request with the mail, but I need to send the product id and product name. Here is the ID code of the product and name.

 <tr> <td>Id товара: </td> <td><div name="Id"><?php echo $_GET['Id']; ?></div></td> </tr> <tr> <td>Название:</td> <td><div name="Name"><?php echo $_GET['Name'];?></div></td> </tr> 

I hope for your help

  • one
    "it sends a request with the mail" - how? - Igor

2 answers 2

 <tr> <td>Id товара: </td> <td><div name="Id"> <input type="hidden" name="Id" value="<?php echo $_GET['Id']; ?>" /> <?php echo $_GET['Id']; ?> </div></td> </tr> <tr> <td>Название:</td> <td><div name="Name"> <input type="hidden" name="Name" value="<?php echo $_GET['Name']; ?>" /> <?php echo $_GET['Name'];?> </div></td> </tr> 
  • eeee! XSS - mymedia

Use hidden form fields <input type="hidden"> . Just put the desired value in the value attribute. For example:

 <input type="hidden" name="Id" value="<?=$_GET['Id']; ?>">