But that only hides the error. It doesn't solve why its happening in the first place. The Op wants to know why its not set when its being output in the hyperlink. Thats the problem hiding the error doesn't help as the error as actually useful in telling us there is something wrong.

SpacePhoenix
—
2011-02-21T22:20:35Z —
#7

It's because $_GET['cvid'] isn't set. The error can be elimianted by the use of isset()

But that still doesn't explain why the value is not being passed. The dump clearly shows its not there.

StevenHu if you have Teamviewer installed I can take a look with you thsi evening (UK time).

SpacePhoenix
—
2011-02-22T11:26:14Z —
#17

Try changing the

$cvid = $_GET['cvid']) {

to

$cvid = $_POST['cvid']) {

as your using POST for the form method

tangoforce
—
2011-02-22T11:44:29Z —
#18

SpacePhoenix said:

as your using POST for the form method

Since when did a hyperlink become $POST ? - look at the very top of the page he is using a hyperlink. Yes the source for the page does use the same value as a hidden element in a form but if you look at the script again you can see that is processed elsewhere using $POST.

The ops problem is that the hyperlink isn't passing the variable in $_GET.

SpacePhoenix
—
2011-02-22T12:05:06Z —
#19

$cvid = $_GET['cvid']) {

to

$cvid = $_GET['cvid'] {

You've got a stray ) and a stray { in there

webdesignhouston
—
2011-02-22T13:53:05Z —
#20

Seems like you have full error reporting enabled. The error is actually a notice which you can turn off by changing the "error_reporting" value inside php.ini or inside the code.

Anyway, the problem is there and you should check for the presence of the key inside an array before attempting to access it. Lots of ways to do this. Here is the simplest one of them all: