I keep getting the error:
Code:
Notice: Undefined index: sending in /home/r0106985/public_html/duct-central/winawallet.php on line 8
When all my code says is:
Code:
<?php
$title = "Win A Wallet";
include("header.php");
include("mainfuncs.php");
?>
<?php
$sending = $_POST['sending'];
if($sending == 1){
SOME RANDOM CODE
}
frame(1, 'winawallet');
?>
</body>
</html>
The problem I guess comes because sometimes $sending is passed from a form to this script and sometimes another script doesn't send that variable. How do I make it so that it won't complain if the variable doesn't exist?
|