Php 注意:删除项目时未定义索引

Php 注意:删除项目时未定义索引,php,Php,我试图删除一个条目,但不断出现以下错误: 注意:未定义索引:wineTypeID /第33行的storage/ssd5/765/3453765/public_html/wine_action.php 注意:未定义索引:wineName in /第34行的storage/ssd5/765/3453765/public_html/wine_action.php 注意:未定义索引:wineSize in /第35行的storage/ssd5/765/3453765/public_html/wine_a

我试图删除一个条目,但不断出现以下错误:

注意:未定义索引:wineTypeID /第33行的storage/ssd5/765/3453765/public_html/wine_action.php

注意:未定义索引:wineName in /第34行的storage/ssd5/765/3453765/public_html/wine_action.php

注意:未定义索引:wineSize in /第35行的storage/ssd5/765/3453765/public_html/wine_action.php

注意:未定义索引:winePrice in /第36行的storage/ssd5/765/3453765/public_html/wine_action.php

我的代码如下所示

<?php

// include the connection stream include 'connectYes.php';

// here are the two hiddent fields

// they tell the script is this is an add, update or delete

// and for an update and delete, they pass the id

$action = $_REQUEST["action"];

$id = $_REQUEST["id"];

$wineTypeID = $_REQUEST["wineTypeID"];

$wineName = $_REQUEST["wineName"];

$wineSize = $_REQUEST["wineSize"];

$winePrice = $_REQUEST["winePrice"];

if ($action == 'a') {

$query = "insert into WINE values (

null,

'$wineTypeID',

'$wineName',

'$wineSize',

'$winePrice'

)";

mysqli_query($conn,$query)

or die (mysqli_error());

print "<h3>The Item    $wineName is added to the List</h3>";
" </h3>";

}

if ($action == 'u') {

$query = "update WINE

set wineTypeID = '$wineTypeID',

wineName = '$wineName',

wineSize = '$wineSize',

winePrice = '$winePrice'

where wineID = '$id'"; 

mysqli_query($conn, $query) 

or     die(mysqli_error());

print "<h3>Update Successful</h3>";
} // end u

if ($action == 'd') {

$query = "delete from WINE

where wineID = '$id'";

mysqli_query($conn, $query)

     or die("query failed:" . mysqli_error());

print "<h3>Delete Successful</h3>";
}

?>}
我的网页链接:-

链接到我的文件:-


mysql结构图像:-

请检查您请求的参数wineTypeID参数是否通过。

可能重复