Processing Code created on the fly

From: Date: Fri, 29 Mar 2002 21:32:41 +0000
Subject: Processing Code created on the fly
Groups: php.general 
Request: Send a blank email to php-general+get-90718@lists.php.net to get a copy of this message
I am trying to create an HTML Table which has TH headers which are different depending upon the link clicked to access the page. Also, the content of the TD's below the headers would be different depending on the headers and depending on the link clicked. I have sorted out many of the details, but one eludes me. Attached is an example that I have created to try to prove my point. In it you will first see two variables that have been created inside of a function. The function is called with certain values and these variables are created and populated with PHP code that needs to be evaluated at a point later in the file that calls the function. Next you will see a WHILE statement that should take the contents of the those variables and evaluate those contents as if they had been hard-coded in place of the variables. So far, when I run the script as is it simply prints the contents of the variables, which is raw PHP code, but does not process it. The results is that the raw PHP code that is in the variables doesn't get process, but is output at text on the resulting HTML page. Can anyone help me figure this out? I would really appreciate it. Thanks in advance, Jonathan Duncan begin 666 example.php M/#\-"E1H97-E('9A<FEA8FQE<R!A<F4@<&]P=6QA=&5D(&%N9"!A<W-I9VYE M9"!I;B!A(&9U;F-T:6]N.@T**%1H:7,@:7,@:G5S="!A;B!E>&%M<&QE+B @ M26X@86-T=6%L:71Y('1H97-E('9A<FEA8FQE<PT*87)E('!O<'5L871E9"!U M<VEN9R!O=&AE<B!M96%N<RXI#0HM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM M+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2TM+2T-"B1O=&AE<G9A<G,@ M/2!A<G)A>2@@)'-E<G9I8V4@/2 D<W%L<F5S=6QT6R=S97)V:6-E)UT[#0H) M"0D)"21M7V%M;W5N=" ]("1S<6QR97-U;'1;)VU?86UO=6YT)UT[#0H)"0D) M"21P86ED=&AR=2 ]("1S<6QR97-U;'1;)W!A:61T:')U)UT[#0H)"0D)"21A M;6]U;G1D=64@/2 D<W%L<F5S=6QT6R=A;6]U;G1D=64G73LI#0H-"B1T86)L M961A=&$@/2!A<G)A>2@\5$0^)&%C8V]U;G0\+U1$/@T*"0D)"2 @(#Q41#XD M<V5R=FE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;RQL;V-A=&EO;CUN;RQD:7)E8W1O<FEE<SUN;RQS=&%T=7,] M;F\L<V-R;VQL8F%R<SUN;RQR97-I>F%B;&4];F\L;65N=6)A<CUN;R<I.R!R M971U<FX@9F%L<V5<(B D;V5L:6YK<W1Y;&4^)'!A:61T:')U/"]!/CPO5$0^ M#0H)"0D)"2 @/%1$($%,24=./5PB8V5N=&5R7"(^7"0D86UO=6YT9'5E/"]4 M1#X-"@D)"0D)(" \5$0^/$$@2%)%1CU<(FUA:6QT;SHD96UA:6Q<(B D;V5L M:6YK<W1Y;&4^)&5M86EL/"]!/CPO5$0^#0H)"0D)"2 @/%1$($%,24=./5PB ?8V5N=&5R7"(^)'1E<FUS/"]41#X\+U12/B([#0H_/@`` ` end

« previous php.general (#90718) next »