I’m new in php and I’m getting this error:
Notice: Undefined index: productid in /var/www/test/modifyform.php on line 32 Notice: Undefined index: name in /var/www/test/modifyform.php on line 33 Notice: Undefined index: price in /var/www/test/modifyform.php on line 34 Notice: Undefined index: description in /var/www/test/modifyform.php on line 35
I couldn’t find any solution online, so maybe someone can help me.
Here is the code:
[php]
Product ID:
Name:
Price:
Description:
<?php echo $description;?>
<?php if (isset($_POST['submit'])) { $rowID = $_POST['rowID']; $productid = $_POST['productid']; //this is line 32 and so on... $name = $_POST['name']; $price = $_POST['price']; $description = $_POST['description'];[/php]
What I do after that (or at least I’m trying) is to update a table in mysql.
I really can’t understand why $rowID is defined while the other variables don’t.
Thank you for taking your time to answer me.
Cheers!