Re: Newbie Three
- From: Jerry Stuckle <jstucklex@xxxxxxxxxxxxx>
- Date: Mon, 09 Jul 2007 07:24:37 -0400
Reggie wrote:
Am getting this error message when am up loading my website please
help.
This is the ERROR MESSAGE:
Notice: Undefined index: field_name_arr in /home/fhlinux169/c/
clashoff.co.uk/user/htdocs/phpi/input_inc/register_globals.inc on line
14
Notice: Undefined index: limit in /home/fhlinux169/c/clashoff.co.uk/
user/htdocs/phpi/input_inc/register_globals.inc on line 17
Notice: Undefined index: orderby in /home/fhlinux169/c/clashoff.co.uk/
user/htdocs/phpi/input_inc/register_globals.inc on line 18
Notice: Undefined index: form in /home/fhlinux169/c/clashoff.co.uk/
user/htdocs/phpi/input_inc/register_globals.inc on line 21
Notice: Undefined index: iona in /home/fhlinux169/c/clashoff.co.uk/
user/htdocs/phpi/input_inc/register_globals.inc on line 1112
Notice: Undefined index: error in /home/fhlinux169/c/clashoff.co.uk/
user/htdocs/phpi/input_inc/register_globals.inc on line 1144
Notice: Undefined index: seshid in /home/fhlinux169/c/clashoff.co.uk/
user/htdocs/phpi/input_inc/register_globals.inc on line 1153
Notice: Undefined index: id in /home/fhlinux169/c/clashoff.co.uk/user/
htdocs/phpi/input_inc/register_globals.inc on line 1158
Notice: Undefined index: edit in /home/fhlinux169/c/clashoff.co.uk/
user/htdocs/phpi/input_inc/register_globals.inc on line 1164
Notice: Undefined index: sure in /home/fhlinux169/c/clashoff.co.uk/
user/htdocs/phpi/input_inc/register_globals.inc on line 1170
Notice: Undefined index: doc_type in /home/fhlinux169/c/clashoff.co.uk/
user/htdocs/phpi/input_inc/register_globals.inc on line 1177
Notice: Undefined index: ftp in /home/fhlinux169/c/clashoff.co.uk/user/
htdocs/phpi/input_inc/register_globals.inc on line 1183
Notice: Undefined index: f_id in /home/fhlinux169/c/clashoff.co.uk/
user/htdocs/phpi/input_inc/register_globals.inc on line 1189
Notice: Undefined index: linked_id in /home/fhlinux169/c/
clashoff.co.uk/user/htdocs/phpi/input_inc/register_globals.inc on line
1194
Notice: Undefined index: id in /home/fhlinux169/c/clashoff.co.uk/user/
htdocs/phpi/input_inc/register_globals.inc on line 1200
Notice: Undefined index: limit in /home/fhlinux169/c/clashoff.co.uk/
user/htdocs/phpi/input_inc/register_globals.inc on line 1207
Notice: Undefined index: orderby in /home/fhlinux169/c/clashoff.co.uk/
user/htdocs/phpi/input_inc/register_globals.inc on line 1208
This is the code: PLEASE HELP
<?php
//*****dealing with post varables
//each time there is a form the data should be filtered and
//only then the action taken.
//sorry this code is a bit clunky, it's a late edition and has to be
entered
//in time for a deadline - i'm sure the next revision will be a bit
simplier.
//echo $field_name_arr[0];
$name = $_POST['field_name_arr'][1];
$limit = $_GET['limit'];
$orderby = $_GET['orderby'];
switch ($_POST['form'])
{
case 'searchform':
echo "tesgform";
$allowed = array();
$allowed[] = 'form';
$allowed[] = 'searchwords';
$allowed[] = 'search';
$allowed[] = 'prefix';
$allowed[] = 'Submit';
$sent = array_keys($_POST);
$numrows= count($sent);
for ($i =0; $i < $numrows; $i++)
{
echo $sent[$i];
}
if ($allowed != $sent)
{
echo "suspected alien invasion case topic table";
exit;
}
else
{
$searchwords = $_POST['searchwords'];
$prefix = $_POST['prefix'];
}
break;
case 'topic_table':
$allowed = array();
$allowed[] = 'form';
$allowed[] = 'top_post';
$allowed[] = 'update';
$allowed[] = 'iona';
$allowed[] = 'seshid';
$allowed[] = 'topic';
$allowed[] = 'top_name';
$allowed[] = 'top_right';
$allowed[] = 'Submit';
$sent = array_keys($_POST);
$numrows= count($sent);
// for ($i =0; $i < $numrows; $i++)
// {
// echo $sent[$i];
// }
if ($allowed != $sent)
{
echo "suspected alien invasion case topic table";
exit;
}
else
{
$top_post = $_POST['top_post'];
$update = $_POST['update'];
$iona = $_POST['iona'];
$seshid = $_POST['seshid'];
$topic = $_POST['topic'];
$top_name = $_POST['top_name'];
$top_right = $_POST['top_right'];
}
break;
case 'login':
$allowed = array();
$allowed[] = 'form';
$allowed[] = 'username';
$allowed[] = 'password';
$allowed[] = 'Submit';
$sent = array_keys($_POST);
// $numrows= count($sent);
// for ($i =0; $i < $numrows; $i++)
// {
// echo $sent[$i];
// }
if ($allowed != $sent)
{
echo "suspected alien invasion case login";
exit;
}
else
{
$username = $_POST['username'];
$password = $_POST['password'];
}
break;
case 'bin_entry':
$allowed = array();
$allowed[] = 'form';
$allowed[] = 'iona';
$allowed[] = 'id';
$allowed[] = 'seshid';
$allowed[] = 'prefix';
$allowed[] = 'Submit';
$sent = array_keys($_POST);
// $numrows= count($sent);
// for ($i =0; $i < $numrows; $i++)
// {
// echo $sent[$i];
// }
if ($allowed != $sent)
{
echo "suspected alien invasion case login";
exit;
}
else
{
$iona = $_POST['iona'];
$id = $_POST['id'];
$seshid = $_POST['seshid'];
$prefix = $_POST['prefix'];
}
break;
case 'pass_reminder':
$allowed = array();
$allowed[] = 'form';
$allowed[] = 'iona';
$allowed[] = 'seshid';
$allowed[] = 'complete';
$allowed[] = 'username';
$allowed[] = 'Submit';
$sent = array_keys($_POST);
// $numrows= count($sent);
// for ($i =0; $i < $numrows; $i++)
// {
// echo $sent[$i];
// }
if ($allowed != $sent)
{
echo "suspected alien invasion case login";
exit;
}
else
{
$iona = $_POST['iona'];
$seshid = $_POST['seshid'];
$complete = $_POST['complete'];
$username = $_POST['username'];
}
break;
case 'different_type':
$allowed = array();
$allowed[] = 'form';
$allowed[] = 'id';
$allowed[] = 'iona';
$allowed[] = 'seshid';
$allowed[] = 'prefix';
$allowed[] = 'doc_type';
$allowed[] = 'Submit';
$sent = array_keys($_POST);
// $numrows= count($sent);
// for ($i =0; $i < $numrows; $i++)
// {
// echo $sent[$i];
// }
if ($allowed != $sent)
{
echo "suspected alien invasion case login";
exit;
}
else
{
$iona = $_POST['iona'];
$seshid = $_POST['seshid'];
$id = $_POST['id'];
$doc_type = $_POST['doc_type'];
$prefix = $_POST['prefix'];
}
break;
case 'full_syndication':
$allowed = array();
$allowed[] = 'form';
$allowed[] = 'iona';
$allowed[] = 'id';
$allowed[] = 'seshid';
$allowed[] = 'prefix';
$allowed[] = 'update_complete';
$allowed[] = 'field_name_arr';
$allowed[] = 'Submit';
$sent = array_keys($_POST);
// $numrows= count($sent);
// for ($i =0; $i < $numrows; $i++)
// {
// echo $sent[$i];
// }
if ($allowed != $sent)
{
echo "suspected alien invasion case login";
exit;
}
else
{
$iona = $_POST['iona'];
$id = $_POST['id'];
$seshid = $_POST['seshid'];
$prefix = $_POST['prefix'];
$update_complete = $_POST['update_complete'];
$numrows = count($_POST['field_name_arr']);
for ($i =0 ; $i < $numrows ; $i++)
{
$field_name_arr[$i] = $_POST['field_name_arr'][$i];
}
}
break;
case 'upload_image':
$allowed = array();
$allowed[] = 'form';
$allowed[] = 'iona';
$allowed[] = 'id';
$allowed[] = 'seshid';
$allowed[] = 'prefix';
$allowed[] = 'edit';
$allowed[] = 'Submit';
$sent = array_keys($_POST);
// $numrows= count($sent);
// for ($i =0; $i < $numrows; $i++)
// {
// echo $sent[$i];
// }
if ($allowed != $sent)
{
echo "suspected alien invasion case login";
exit;
}
else
{
$iona = $_POST['iona'];
$id = $_POST['id'];
$seshid = $_POST['seshid'];
$prefix = $_POST['prefix'];
$edit = $_POST['edit'];
}
break;
case 'delete_version':
$allowed = array();
$allowed[] = 'form';
$allowed[] = 'iona';
$allowed[] = 'sure';
$allowed[] = 'id';
$allowed[] = 'seshid';
$allowed[] = 'prefix';
$allowed[] = 'Submit';
$sent = array_keys($_POST);
// $numrows= count($sent);
// for ($i =0; $i < $numrows; $i++)
// {
// echo $sent[$i];
// }
if ($allowed != $sent)
{
echo "suspected alien invasion case delete version ";
exit;
}
else
{
$iona = $_POST['iona'];
$sure = $_POST['sure'];
$id = $_POST['id'];
$seshid = $_POST['seshid'];
$prefix = $_POST['prefix'];
}
break;
case 'bin_sure':
$allowed = array();
$allowed[] = 'form';
$allowed[] = 'iona';
$allowed[] = 'sure';
$allowed[] = 'id';
$allowed[] = 'seshid';
$allowed[] = 'prefix';
$allowed[] = 'Submit';
$sent = array_keys($_POST);
// $numrows= count($sent);
// for ($i =0; $i < $numrows; $i++)
// {
// echo $sent[$i];
// }
if ($allowed != $sent)
{
echo "suspected alien invasion case delete version ";
exit;
}
else
{
$iona = $_POST['iona'];
$sure = $_POST['sure'];
$id = $_POST['id'];
$seshid = $_POST['seshid'];
$prefix = $_POST['prefix'];
}
break;
case 'register':
$allowed = array();
$allowed[] = 'form';
$allowed[] = 'seshid';
$allowed[] = 'iona';
$allowed[] = 'username1';
$allowed[] = 'password';
$allowed[] = 'password2';
$allowed[] = 'user_group';
$allowed[] = 'Submit';
$sent = array_keys($_POST);
// $numrows= count($sent);
// for ($i =0; $i < $numrows; $i++)
// {
// echo $sent[$i];
// }
if ($allowed != $sent)
{
echo "suspected alien invasion case delete version ";
exit;
}
else
{
$seshid = $_POST['seshid'];
$iona = $_POST['iona'];
$username1 = $_POST['username1'];
$password = $_POST['password'];
$password2 = $_POST['password2'];
$user_group = $_POST['user_group'];
}
break;
case 'pub_pass':
$allowed = array();
$allowed[] = 'form';
$allowed[] = 'seshid';
$allowed[] = 'iona';
$allowed[] = 'password';
$allowed[] = 'Submit';
$sent = array_keys($_POST);
// $numrows= count($sent);
// for ($i =0; $i < $numrows; $i++)
// {
// echo $sent[$i];
// }
if ($allowed != $sent)
{
echo "suspected alien invasion case public pass";
exit;
}
else
{
$password = $_POST['password'];
$seshid = $_POST['seshid'];
$iona = $_POST['iona'];
}
break;
case 'page_pass':
$allowed = array();
$allowed[] = 'form';
$allowed[] = 'password';
$allowed[] = 'Submit';
$sent = array_keys($_POST);
// $numrows= count($sent);
// for ($i =0; $i < $numrows; $i++)
// {
// echo $sent[$i];
// }
if ($allowed != $sent)
{
echo "suspected alien invasion case public pass";
exit;
}
else
{
$password = $_POST['password'];
}
break;
case 'top_table':
$allowed = array();
$allowed[] = 'form';
$allowed[] = 'top_post';
$allowed[] = 'update';
$allowed[] = 'iona';
$allowed[] = 'seshid';
$allowed[] = 'top_name';
$allowed[] = 'top_right';
$allowed[] = 'bottom';
$allowed[] = 'Submit';
$sent = array_keys($_POST);
// $numrows= count($sent);
// for ($i =0; $i < $numrows; $i++)
// {
// echo $sent[$i];
// }
if ($allowed != $sent)
{
echo "suspected alien invasion case public pass";
exit;
}
else
{
$top_post = $_POST['top_post'];
$update = $_POST['update'];
$iona = $_POST['iona'];
$seshid = $_POST['seshid'];
$top_name = $_POST['top_name'];
$top_right = $_POST['top_right'];
$bottom = $_POST['bottom'];
}
break;
case 'update':
$allowed = array();
$allowed[] = 'iona';
$allowed[] = 'seshid';
$allowed[] = 'update_complete';
$allowed[] = 'prefix';
$allowed[] = 'id';
$allowed[] = 'edit';
$allowed[] = 'form';
$allowed[] = 'field_name_arr';
$allowed[] = 'date_arr';
$allowed[] = 'Submit';
$sent = array_keys($_POST);
// $numrows= count($sent);
// for ($i =0; $i < $numrows; $i++)
// {
// echo $sent[$i] . "<br>" ;
// }
if ($allowed != $sent)
{
echo "suspected alien invasion case update";
exit;
}
else
{
if ($_POST['iona']!="")
{
$iona = $_POST['iona'];
include ("../phpi/global/groups_info.inc");
if (!in_array($iona,$groups_name_arr))
{
echo "suspected alien invasion unknown group name";
exit;
}
}
if ($_POST['prefix']!="")
{
$prefix = $_POST['prefix'];
include ("../$iona/global/cat_list.inc");
if (!in_array($prefix,$cat_list))
{
echo "suspected alien invasion unknown category";
exit;
}
}
//some of these variables don't need to be filtered
//as they are not hazardous
if ($_POST['seshid']!="")
{
$seshid = $_POST['seshid'];
}
if ($_POST['update_complete']!="")
{
$update_complete = $_POST['update_complete'];
}
if ($_POST['id']!="")
{
$id = $_POST['id'];
}
if ($_POST['edit']!="")
{
$edit = $_POST['edit'];
}
$numrows = count($_POST['field_name_arr']);
for ($i =0 ; $i < $numrows ; $i++)
{
$field_name_arr[$i] = $_POST['field_name_arr'][$i];
}
$numrows = count($_POST['date_arr']);
for ($i =0 ; $i < $numrows ; $i++)
{
$date_arr[$i] = $_POST['date_arr'][$i];
}
}
break;
case 'photo':
$allowed = array();
$allowed[] = 'iona';
$allowed[] = 'seshid';
$allowed[] = 'update_complete';
$allowed[] = 'prefix';
$allowed[] = 'id';
$allowed[] = 'edit';
$allowed[] = 'form';
$allowed[] = 'field_name_arr';
$allowed[] = 'date_arr';
$allowed[] = 'Submit';
$sent = array_keys($_POST);
// $numrows= count($sent);
// for ($i =0; $i < $numrows; $i++)
// {
// echo $sent[$i];
// }
if ($allowed != $sent)
{
echo "suspected alien invasion case soma";
exit;
}
else
{
if ($_POST['iona']!="")
{
$iona = $_POST['iona'];
include ("../phpi/global/groups_info.inc");
if (!in_array($iona,$groups_name_arr))
{
echo "suspected alien invasion unknown group name";
exit;
}
}
if ($_POST['prefix']!="")
{
$prefix = $_POST['prefix'];
include ("../$iona/global/cat_list.inc");
if (!in_array($prefix,$cat_list))
{
echo "suspected alien invasion unknown category";
exit;
}
}
//some of these variables don't need to be filtered
//as they are not hazardous
if ($_POST['seshid']!="")
{
$seshid = $_POST['seshid'];
}
if ($_POST['update_complete']!="")
{
$update_complete = $_POST['update_complete'];
}
if ($_POST['id']!="")
{
$id = $_POST['id'];
}
if ($_POST['edit']!="")
{
$edit = $_POST['edit'];
}
$numrows = count($_POST['field_name_arr']);
for ($i =0 ; $i < $numrows ; $i++)
{
$field_name_arr[$i] = $_POST['field_name_arr'][$i];
}
$numrows = count($_POST['date_arr']);
for ($i =0 ; $i < $numrows ; $i++)
{
$date_arr[$i] = $_POST['date_arr'][$i];
}
}
break;
case 'update_topics':
$allowed = array();
$allowed[] = 'iona';
$allowed[] = 'seshid';
$allowed[] = 'update_complete';
$allowed[] = 'prefix';
$allowed[] = 'id';
$allowed[] = 'edit';
$allowed[] = 'form';
$allowed[] = 'field_name_arr';
$allowed[] = 'checked';
$allowed[] = 'Submit';
$sent = array_keys($_POST);
// $numrows= count($sent);
// for ($i =0; $i < $numrows; $i++)
// {
// echo $sent[$i] . "<br>";
// }
if ($allowed != $sent)
{
echo "suspected alien invasion case soma topics";
exit;
}
else
{
if ($_POST['iona']!="")
{
$iona = $_POST['iona'];
include ("../phpi/global/groups_info.inc");
if (!in_array($iona,$groups_name_arr))
{
echo "suspected alien invasion unknown group name";
exit;
}
}
if ($_POST['prefix']!="")
{
$prefix = $_POST['prefix'];
include ("../$iona/global/cat_list.inc");
if (!in_array($prefix,$cat_list))
{
echo "suspected alien invasion unknown category";
exit;
}
}
//some of these variables don't need to be filtered
//as they are not hazardous
if ($_POST['seshid']!="")
{
$seshid = $_POST['seshid'];
}
if ($_POST['update_complete']!="")
{
$update_complete = $_POST['update_complete'];
}
if ($_POST['id']!="")
{
$id = $_POST['id'];
}
if ($_POST['edit']!="")
{
$edit = $_POST['edit'];
}
$numrows = count($_POST['field_name_arr']);
for ($i =0 ; $i < $numrows ; $i++)
{
$field_name_arr[$i] = $_POST['field_name_arr'][$i];
}
$numrows = count($_POST['checked']);
for ($i =0 ; $i < $numrows ; $i++)
{
$checked[$i] = $_POST['checked'][$i];
// echo $checked[$i];
}
$numrows = count($_POST['date_arr']);
for ($i =0 ; $i < $numrows ; $i++)
{
$date_arr[$i] = $_POST['date_arr'][$i];
}
}
break;
case 'photo_topics':
$allowed = array();
$allowed[] = 'iona';
$allowed[] = 'seshid';
$allowed[] = 'update_complete';
$allowed[] = 'prefix';
$allowed[] = 'id';
$allowed[] = 'edit';
$allowed[] = 'form';
$allowed[] = 'field_name_arr';
$allowed[] = 'Submit';
$sent = array_keys($_POST);
// $numrows= count($sent);
// for ($i =0; $i < $numrows; $i++)
// {
// echo $sent[$i];
// }
if ($allowed != $sent)
{
echo "suspected alien invasion case soma topics";
exit;
}
else
{
if ($_POST['iona']!="")
{
$iona = $_POST['iona'];
include ("../phpi/global/groups_info.inc");
if (!in_array($iona,$groups_name_arr))
{
echo "suspected alien invasion unknown group name";
exit;
}
}
if ($_POST['prefix']!="")
{
$prefix = $_POST['prefix'];
include ("../$iona/global/cat_list.inc");
if (!in_array($prefix,$cat_list))
{
echo "suspected alien invasion unknown category";
exit;
}
}
//some of these variables don't need to be filtered
//as they are not hazardous
if ($_POST['seshid']!="")
{
$seshid = $_POST['seshid'];
}
if ($_POST['update_complete']!="")
{
$update_complete = $_POST['update_complete'];
}
if ($_POST['id']!="")
{
$id = $_POST['id'];
}
if ($_POST['edit']!="")
{
$edit = $_POST['edit'];
}
$numrows = count($_POST['field_name_arr']);
for ($i =0 ; $i < $numrows ; $i++)
{
$field_name_arr[$i] = $_POST['field_name_arr'][$i];
}
$numrows = count($_POST['date_arr']);
for ($i =0 ; $i < $numrows ; $i++)
{
$date_arr[$i] = $_POST['date_arr'][$i];
}
}
break;
case 'update_version':
$allowed = array();
$allowed[] = 'iona';
$allowed[] = 'seshid';
$allowed[] = 'update_complete';
$allowed[] = 'prefix';
$allowed[] = 'id';
$allowed[] = 'doc_type';
$allowed[] = 'edit';
$allowed[] = 'ftp';
$allowed[] = 'file_upload';
$allowed[] = 'MAX_FILE_SIZE';
$allowed[] = 'linked_id';
$allowed[] = 'form';
$allowed[] = 'field_name_arr';
$allowed[] = 'time_arr';
$allowed[] = 'Submit';
$sent = array_keys($_POST);
// $numrows= count($sent);
// for ($i =0; $i < $numrows; $i++)
// {
// echo $sent[$i];
// echo "<br>";
// }
//this one is a bit too complicated to do in the deadline
// as the contents are dependent on the file type
// if ($allowed != $sent)
// {
// echo "suspected alien invasion case soma files";
// exit;
// }
// else
// {
if ($_POST['iona']!="")
{
$iona = $_POST['iona'];
include ("../phpi/global/groups_info.inc");
if (!in_array($iona,$groups_name_arr))
{
echo "suspected alien invasion unknown group name";
exit;
}
}
if ($_POST['prefix']!="")
{
$prefix = $_POST['prefix'];
include ("../$iona/global/cat_list.inc");
if (!in_array($prefix,$cat_list))
{
echo "suspected alien invasion unknown category";
exit;
}
// }
//some of these variables don't need to be filtered
//as they are not hazardous
if ($_POST['doc_type']!="")
{
$doc_type = $_POST['doc_type'];
}
if ($_POST['MAX_FILE_SIZE']!="")
{
$MAX_FILE_SIZE = $_POST['MAX_FILE_SIZE'];
}
$linked_id = $_POST['linked_id'];
if ($_POST['ftp']!="")
{
$ftp = $_POST['ftp'];
}
if ($_POST['file_upload']!="")
{
$file_upload = $_POST['file_upload'];
}
if ($_POST['seshid']!="")
{
$seshid = $_POST['seshid'];
}
if ($_POST['update_complete']!="")
{
$update_complete = $_POST['update_complete'];
}
if ($_POST['id']!="")
{
$id = $_POST['id'];
}
if ($_POST['edit']!="")
{
$edit = $_POST['edit'];
}
$numrows = count($_POST['field_name_arr']);
for ($i =0 ; $i < $numrows ; $i++)
{
$field_name_arr[$i] = $_POST['field_name_arr'][$i];
echo $field_name[$i];
}
$numrows = count($_POST['time_arr']);
for ($i =0 ; $i < $numrows ; $i++)
{
$time_arr[$i] = $_POST['time_arr'][$i];
}
}
break;
}
//*****dealing with get variables
//get variables are passed between pages in the url
//either with a format page.php?variable=value
//or with forward slashes so that the pages show up better in search
engines/
// ie. http://www.gumi_dev.org/bfl/page.php/119/video/
//
// with iona values, these are groups and should be listed in an
include in
//phpi/global/groups_name_arr
if ($_GET['iona']!="")
{
$iona = $_GET['iona'];
include ("../phpi/global/groups_info.inc");
if (!in_array($iona,$groups_name_arr))
{
echo "suspected alien invasion unknown group name";
exit;
}
}
// prefix values are listed in the global directory of the group
//ie. /groupname/global/cat_list.inc
if ($_GET['prefix']!="")
{
$prefix = $_GET['prefix'];
include ("../$iona/global/cat_list.inc");
if ((!in_array($prefix,$cat_list))&&($prefix!="groups"))
{
echo "suspected alien invasion unknown category";
exit;
}
}
//errors GET values are only every used to show what error
message to show
// so they don't need to be filtered.
if ($_GET['error']!="")
{
$error = $_GET['error'];
}
// the seshid is secure as it is a randomly generated number
// stored in the sessions table for a limited period of time
if ($_GET['seshid']!="")
{
$seshid = $_GET['seshid'];
}
if ($_GET['id']!="")
{
$id = $_GET['id'];
}
if ($_GET['edit']!="")
{
$edit = $_GET['edit'];
}
if ($_GET['sure']!="")
{
$sure = $_GET['sure'];
}
if ($_GET['doc_type']!="")
{
$doc_type = $_GET['doc_type'];
}
if ($_GET['ftp']!="")
{
$ftp = $_GET['ftp'];
}
if ($_GET['f_id']!="")
{
$f_id = $_GET['f_id'];
}
if ($_GET['linked_id']!="")
{
$linked_id = $_GET['linked_id'];
}
if ($_GET['id']!="")
{
$id = $_GET['id'];
}
$limit = $_GET['limit'];
$orderby = $_GET['orderby'];
?>
You're problem is these values aren't being passed to your script.
For instance, your first message references $_POST['field_name_arr'], but the $_POST array doesn't have an element with an index 'field_name_arr'.
Your next one is looking for $_GET['limit'], which doesn't exist. And so on.
The question is - why are you trying to access values which don't exist?
And notices are not errors - but that doesn't mean you can just ignore them. Each one indicates a potential problem in your code. It also takes time to handle the notice. If it were safe to just ignore them, the PHP developers wouldn't have gone to the trouble to generate the notices.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@xxxxxxxxxxxxx
==================
.
- Follow-Ups:
- Re: Newbie Three
- From: Michael Fesser
- Re: Newbie Three
- From: Geoff Berrow
- Re: Newbie Three
- References:
- Newbie Three
- From: Reggie
- Newbie Three
- Prev by Date: Newbie Three
- Next by Date: Open a file with a proxy
- Previous by thread: Newbie Three
- Next by thread: Re: Newbie Three
- Index(es):
Relevant Pages
|