0
<form action="<?php if($count==3) 
                        echo"populate3.php"; 
                    else
                        echo"populate1.php"; ?>" method="get" id="form1">

この書き方は正しいですか?代替案は何ですか?

4

1 に答える 1

2
<?php
$action="":
 if($count==3) 
 {
 $action="populate3.php";      
 }
else
{
 $action="populate1.php"; 
}

echo ("<form action=\"$action\" method=\"get\" id=\"form1\">");
于 2013-07-10T11:16:11.543 に答える