Welcome! Log In Create A New Profile

Advanced

Undefined index

Posted by RodrickICT2613 
Announcements Last Post
Announcement myUnisa availability 21 to 24 March 2019 03/17/2019 02:24PM
Announcement SoC Curricula 09/30/2017 01:08PM
Announcement Demarcation or scoping of examinations and assessment 02/13/2017 07:59AM
Announcement School of Computing Short Learning Programmes 11/24/2014 08:37AM
Announcement Unisa contact information 07/28/2011 01:28PM
Undefined index
April 17, 2014 02:19PM
Please somebody help, i am getting this error... Notice: Undefined index: yes in C:\Program Files (x86)\EasyPHP-5.3.3\www\assignment2\validation.php on line 64
Please choose Yes or No

portion of code

$yes = isset($_REQUEST["yes"]) ? $_REQUEST["yes"] : "";

echo "<select value = '", $yes, "'>";
echo "<option selected = 'selected'>";
echo "Select";
echo "</option>";
echo "<option>";
echo "Yes";
echo "</option>";

function check_data()
{
global $errors_array;

this is line 64 if($_REQUEST["yes"] == ""winking smiley
{
$errors_array[] = "<font color = 'red'>Please choose Yes or No</font>";
}
}
Re: Undefined index
April 17, 2014 02:31PM
i just found the solution now! Thanks everyone...
Sorry, only registered users may post in this forum.

Click here to login