[PHP-DB] Undefined index and variables

2003-01-15 Thread Fred Wright
Hi to all
Being new to PHP I am naturally experiencing some minor problems.

I have a form which processes Ref and Chassis data, when I load Add.php
which does work but on loading get errors

Notice: Undefined index: Ref in C:\Xitami\webpages\add.php on line 22
Notice: Undefined index: Chassis in C:\Xitami\webpages\add.php on line 23
How do I get rid of these undefined errors? Could anyone advise please.
Regards
Fred

printf(FORM action=\add.php\ METHOD=post);

printf(TABLE border=\0\ width=\100%%\);

printf(TRTDReference:/TD);

printf(TDINPUT TYPE=text SIZE=5 NAME=Ref /TD/TR);

printf(TRTDChassis:/TD);
printf(TDINPUT TYPE=text SIZE=25 NAME=Chassis /TD/TR);

printf(/TABLE);

printf(INPUT TYPE=submit name=\submit\);

printf(/FORM );



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




RE: [PHP-DB] Undefined index and variables

2003-01-15 Thread Hutchins, Richard
It does not appear that you have posted the code from the add.php page in
your original post (below). From the error messages you provided, that seems
to be where the error is happening. You'll need to post the add.php code and
identify line #23 for us to be able to help.

 -Original Message-
 From: Fred Wright [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, January 15, 2003 6:57 AM
 To: [EMAIL PROTECTED]
 Subject: [PHP-DB] Undefined index and variables
 
 
 Hi to all
 Being new to PHP I am naturally experiencing some minor problems.
 
 I have a form which processes Ref and Chassis data, when I 
 load Add.php
 which does work but on loading get errors
 
 Notice: Undefined index: Ref in C:\Xitami\webpages\add.php on line 22
 Notice: Undefined index: Chassis in 
 C:\Xitami\webpages\add.php on line 23
 How do I get rid of these undefined errors? Could anyone 
 advise please.
 Regards
 Fred
 
 printf(FORM action=\add.php\ METHOD=post);
 
 printf(TABLE border=\0\ width=\100%%\);
 
 printf(TRTDReference:/TD);
 
 printf(TDINPUT TYPE=text SIZE=5 NAME=Ref /TD/TR);
 
 printf(TRTDChassis:/TD);
 printf(TDINPUT TYPE=text SIZE=25 NAME=Chassis /TD/TR);
 
 printf(/TABLE);
 
 printf(INPUT TYPE=submit name=\submit\);
 
 printf(/FORM );
 
 
 
 -- 
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php
 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php