undefined index ??
Posted: Wed Feb 27, 2008 3:58 pm
**** PLEASE USE THE CODE TAG *****
How come I get an Undefined Index error with this code ? What am i doing wrong ? How do you get this error ?
Code: Select all
<?PHP
$p1 = $_POST['p1'];
$p2 = $_POST['p2'];
$p3 = $_POST['p3'];
$total = $p1 + $p2 + $p3;
echo "Your Total is: " . $total;
?>How come I get an Undefined Index error with this code ? What am i doing wrong ? How do you get this error ?