user3460287
user3460287

Reputation: 61

Getting the product id in the database

I want to get the product id in the database and then add a quantity when i press the add button to the product. The code is working but it only get the

<?php

global $con;
$ip = getIp();

= +"; ?>

<?php 
}
?>

Upvotes: 0

Views: 74

Answers (1)

Firat Akandere
Firat Akandere

Reputation: 523

Your html is completely wrong, you should check how to create forms in html. A button should not be inside of a link. You should add hidden input.

Upvotes: 1

Related Questions