Jump to content

Help with ECHO command (FAST)


UglyCoolboy

Recommended Posts

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

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/>
';

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"); ?> 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.