Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
<form action="<?php if($count==3) echo"populate3.php"; else echo"populate1.php"; ?>" method="get" id="form1">
这样写正确吗?有什么替代方案?
<?php $action="": if($count==3) { $action="populate3.php"; } else { $action="populate1.php"; } echo ("<form action=\"$action\" method=\"get\" id=\"form1\">");