0

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 
}
?>
  • 2
    [Your script is at risk for SQL Injection Attacks.](http://stackoverflow.com/questions/60174/how-can-i-prevent-sql-injection-in-php) – Jay Blanchard Jan 06 '16 at 14:28
  • why r u using post and get together, when u need id from get than why just use this – devpro Jan 06 '16 at 14:36

1 Answers1

1

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.

Firat Akandere
  • 523
  • 2
  • 12