it seems not to work with php3. I change *.php3 to *.php, it work.
this is small code of accounting.php3
 
help me to correct this problem

if(!$queryflag) {

echo <<<EOM

<form method=post>

<table border=0 width=740 cellpadding=1 cellspacing=1>

<tr>

<td>

<b>Show the following attributes:</b><br>

<select name="accounting_show_attrs[]" size=5 multiple>

EOM;

foreach($items as $key => $val)

echo <<<EOM

<option $selected[$key] value="$key">$val</option>

EOM;

echo <<<EOM

</select>

<br><br>

<b>Order by:</b><br>

<select name="order_by">

EOM;

foreach($items as $key => $val)

if ($val == 'UserName')

echo <<<EOM

<option selected value="$key">$val</option>

EOM;

else

echo <<<EOM

<option value="$key">$val</option>

EOM;

 

and the result:

Show the following attributes:
EOM; foreach($items as $key => $val) echo << Order by: EOM; foreach($items as $key => $val) if ($val == 'UserName') echo <<

Max results returned:
EOM; $number=1; $offset=0; while (${"item_of_w$number"}) { if(${"delete_w$number"}==1) {$offset=1;$number++;} else { $designator=$number-$offset; ${"w$designator"} = new Qi("w$designator","",""); ${"w$designator"}->get("w$number"); ${"w$designator"}->show(); $number++; } } if($add==1) { ${"w$number"} = new Qi("w$number","$item_name","$operators[0]"); ${"w$number"}->show(); } echo <<
Selection criteria:
--Attribute-- EOM; foreach($items as $key => $val) print("$val"); echo <<

EOM; } ?>

Reply via email to