Re: source of global variable

From: Date: Sat, 25 Aug 2001 20:36:13 +0000
Subject: Re: source of global variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-64453@lists.php.net to get a copy of this message
I'm not sure of the problem but something like <? if ($condition) { echo $time} else { //do something else} ?> You can also print or echo html from php if that helps your program flow like <? echo "<Table> <TR><TH>title</TH></TR> <TR><TD>$data</TD></TR> </Table>"; ?> Often you will want to generate the table rows in an if() or while() statement You can do the same thing with any html tags , javascript, etc. Web pages are not static so pass parameters you need through url A php trick is that <a href="$PHP_SELF?params"> calls itself with the parameters you give it. This works on form action= statements too HTH Nafiseh Saberi wrote: > hi. > I write program with php,then for build table I must to close it, > write html tag and then open php and continue,... > > I ask time in one line and in another line I want to show it. > but I want the first line doesnot run in all condition. > > I think my problem will solve with static variables.??? > thanks. -- Dell Coleman, Principal PICO Technology Corp. Victoria, BC Email decoleman@home.com Web http://members.home.com/pico/

« previous php.general (#64453) next »