Re: Undefined index and variables

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



here are the files to make add.php work. thanks to Richard Hutchins for his
answer, that I do not yet understand:-)

"Fred Wright" <to_637fjw@hotmail.com> wrote in message
20030115105508.13458.qmail@pb1.pair.com">news:20030115105508.13458.qmail@pb1.pair.com...
> 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("<TR><TD>Reference:</TD>");
>
> printf("<TD><INPUT TYPE=text SIZE=5 NAME=Ref ></TD></TR>");
>
> printf("<TR><TD>Chassis:</TD>");
> printf("<TD><INPUT TYPE=text SIZE=25 NAME=Chassis ></TD></TR>");
>
> printf("</TABLE>");
>
> printf("<INPUT TYPE=submit name=\"submit\">");
>
> printf("</FORM>" );
>
>


begin 666 Fred.zip
M4$L#!!0````(`-L)+RX=#XSLUP0``!$-```'````861D+G!H<+57;6_B.!#^
M?$C\A[DHO08IVI! >2G057?+WE;JFPJWI^JZJDQB(-J04-NHRU7][S>.8Z>$
M:^_34:D\F<>>QS-CCT.]-OQ8KWD>B:(/Z^6Z7JO7&'W<Q(PZUB+)9B3ATFXU
M8/"*";/5*DO_A9AGF2@FH/EWFE)&!/TZO;SX2DE$F0/6Z=D97(W_A/'5]/;N
MV (Y<,WB5,P=:RC(+*'P%$=B.;JW.D'WW@)8TGBQ%/GSO75B[4Y@)=UJ[M.1
M<>8WFP<'Z&YW^#"DJ:"L,BU>+8"S$ >%&0F7,Y)B(!\6\1SGF\4U@]?>.G*I
M)(D7*3Y\NIY.KR^E>Z_P/_1$5!'Q!)IWUN_+&>\NV7]KR;^E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!02P$"% `4````" "[:2\N&#7:
M[@P!``#-`0``"P`````````!`" `MH$_#@``9VQO8F%L<RYP:'!02P$"% `4
M````" !."R\N>$A1W>$"```A"P``"0`````````!`" `MH%T#P``1F]O=',N
9<&AP4$L%!@`````$``0`W0```'P2````````
`
end


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


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux