UglyCoolboy Posted January 22, 2009 Share Posted January 22, 2009 Okey here is the problem... everything after the echo command is displayed as an echo, here is the code: <?php $dir_depth = ""; include($dir_depth."include/header.inc.php"); include($dir_depth."include/header.php"); include($dir_depth."include/functions.php"); echo "<strong>ArcEmu & Ascent destination database installation</strong><br/>"; if( $GENERATE_SQL_FILE ) { @unlink("ascent/".$GENERATE_SQL_FILE_NAME); } $pref="ascent_"; $STEPCOUNT=get_config_var($pref."stepcount"); if($secondrun==1) { for($i=1;$i<=$STEPCOUNT;$i++) { if(${$pref."step_".$i}) { set_config_var($pref."step_".$i,1); } else { set_config_var($pref."step_".$i,0); } if ($_POST['field_select'] == 'arcemu') { set_config_var($pref."type","arcemu"); } elseif ($_POST['field_select'] == 'ascent') { set_config_var($pref."type","ascent"); } elseif ($_POST['field_select'] == 'aspire') { set_config_var($pref."type","aspire"); } else { die("Unexpect error!"); } } proceedtonextstep("ascent/s0_import.php"); } echo <<< HTML To continue, please chose the steps you would like to run and then click at the <br/>button "Start Converting".<br/> <form name="get_data" action="ascent.php" method="post"> <input type="hidden" name="secondrun" value="1"> Please chose server type: <select name="field_select"> <option value="arcemu">ArcEmu</option> <option value="ascent">Ascent</option> <option value="aspire">HearthStone</option> </select><br/> HTML; for($i=1;$i<=$STEPCOUNT;$i++) { if(get_config_var($pref."step_".$i)) { $checked="checked"; } else $checked=""; echo "<div style='float:left;'><input type='checkbox' value='1' name='".$pref."step_".$i."'".$checked."></div>"; echo "<div style='margin:10px auto;'>".get_config_var($pref.'step_desc_'.$i)."</div>"; } echo '<input type="submit" value="Start converting">'; echo '</form>'; include("include/footer.inc.php"); ?> Link to comment https://forums.phpfreaks.com/topic/142019-help-with-echo-command-fast/ Share on other sites More sharing options...
The Little Guy Posted January 22, 2009 Share Posted January 22, 2009 You could do it like this: echo ' To continue, please chose the steps you would like to run and then click at the <br/>button "Start Converting".<br/> <form name="get_data" action="ascent.php" method="post"> <input type="hidden" name="secondrun" value="1"> Please chose server type: <select name="field_select"> <option value="arcemu">ArcEmu</option> <option value="ascent">Ascent</option> <option value="aspire">HearthStone</option> </select><br/> '; Link to comment https://forums.phpfreaks.com/topic/142019-help-with-echo-command-fast/#findComment-743635 Share on other sites More sharing options...
UglyCoolboy Posted January 22, 2009 Author Share Posted January 22, 2009 You could do it like this: echo ' To continue, please chose the steps you would like to run and then click at the <br/>button "Start Converting".<br/> <form name="get_data" action="ascent.php" method="post"> <input type="hidden" name="secondrun" value="1"> Please chose server type: <select name="field_select"> <option value="arcemu">ArcEmu</option> <option value="ascent">Ascent</option> <option value="aspire">HearthStone</option> </select><br/> '; It doesn't work, this is what i see: ArcEmu & Ascent destination database installation "; if( $GENERATE_SQL_FILE ) { @unlink("ascent/".$GENERATE_SQL_FILE_NAME); } $pref="ascent_"; $STEPCOUNT=get_config_var($pref."stepcount"); if($secondrun==1) { for($i=1;$i<=$STEPCOUNT;$i++) { if(${$pref."step_".$i}) { set_config_var($pref."step_".$i,1); } else { set_config_var($pref."step_".$i,0); } if ($_POST['field_select'] == 'arcemu') { set_config_var($pref."type","arcemu"); } elseif ($_POST['field_select'] == 'ascent') { set_config_var($pref."type","ascent"); } elseif ($_POST['field_select'] == 'aspire') { set_config_var($pref."type","aspire"); } else { die("Unexpect error!"); } } proceedtonextstep("ascent/s0_import.php"); } echo <<< HTML To continue, please chose the steps you would like to run and then click at the button "Start Converting". Please chose server type: HTML; for($i=1;$i<=$STEPCOUNT;$i++) { if(get_config_var($pref."step_".$i)) { $checked="checked"; } else $checked=""; echo " "; echo " ".get_config_var($pref.'step_desc_'.$i)." "; } echo ''; echo ' '; include("include/footer.inc.php"); ?> Link to comment https://forums.phpfreaks.com/topic/142019-help-with-echo-command-fast/#findComment-743644 Share on other sites More sharing options...
kenrbnsn Posted January 22, 2009 Share Posted January 22, 2009 Change <?php echo <<< HTML ?> to <?php echo <<<HTML ?> Ken Link to comment https://forums.phpfreaks.com/topic/142019-help-with-echo-command-fast/#findComment-743662 Share on other sites More sharing options...
UglyCoolboy Posted January 22, 2009 Author Share Posted January 22, 2009 Ty, but still not working... I think there is something with the first echo and the <br /> command perhaps Link to comment https://forums.phpfreaks.com/topic/142019-help-with-echo-command-fast/#findComment-743676 Share on other sites More sharing options...
kenrbnsn Posted January 22, 2009 Share Posted January 22, 2009 Please do a "show source" to get the generated HTML and post that. Somehow you're leaving PHP. Ken Link to comment https://forums.phpfreaks.com/topic/142019-help-with-echo-command-fast/#findComment-743726 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.