poderia me mandar o código inteiro da pagina ?
[Dúvida] Como colocar style ou center nesta linha?
Por LeoTK, 22 de abr. de 2015 em Websites
info
Grupo: Marquês
Registrado: 24/12/09
Posts: 1k
Reputação: +326
Gênero: Masculino
Char no Tibia: Necromanser

<?php
error(validation_errors());
if(empty($_POST['motd'])) $_POST['motd'] = $motd;
echo form_open("guilds/motd/".$id."/");
echo "<textarea name='motd'>".set_value('motd')."</textarea><br/>";
echo "<input style='margin-left: 50px;' type='submit' value='Change'/>";
echo "</form>";
?>
info
Grupo: Marquês
Registrado: 24/12/09
Posts: 1k
Reputação: +326
Gênero: Masculino
Char no Tibia: Necromanser

<?php
error(validation_errors());
if(empty($_POST['motd'])) $_POST['motd'] = $motd;
echo form_open("guilds/motd/".$id."/");
echo "<textarea name='motd'>".set_value('motd')."</textarea><br/>";
echo "<input style='margin-left: 50px;' type='submit' value='Change'/>";
echo "</form>";
?>
Por
<?php
<center>
error(validation_errors());
if(empty($_POST['motd'])) $_POST['motd'] = $motd;
echo form_open("guilds/motd/".$id."/");
echo "<textarea name='motd'>".set_value('motd')."</textarea><br/>";
echo "<input style='margin-left: 50px;' type='submit' value='Change'/>";
echo "</form>";
</center>
?>
não aconteceu nada ...
<?php error(validation_errors()); if(empty($_POST['motd'])) $_POST['motd'] = $motd; echo form_open("guilds/motd/".$id."/"); echo "<textarea name='motd'>".set_value('motd')."</textarea><br/>"; echo "<input style='margin-left: 50px;' type='submit' value='Change'/>"; echo "</form>"; ?>Por
<?php <center> error(validation_errors()); if(empty($_POST['motd'])) $_POST['motd'] = $motd; echo form_open("guilds/motd/".$id."/"); echo "<textarea name='motd'>".set_value('motd')."</textarea><br/>"; echo "<input style='margin-left: 50px;' type='submit' value='Change'/>"; echo "</form>"; </center> ?>
<center><?php
error(validation_errors());
if(empty($_POST['motd'])) $_POST['motd'] = $motd;
echo form_open("guilds/motd/".$id."/");
echo "<textarea name='motd'>".set_value('motd')."</textarea><br/>";
echo "<input style='margin-left: 50px;' type='submit' value='Change'/>";
echo "</form>";
?>
</center>
tenta assim.
Editado Abril 22 por Unknowed
Tente usar o
echo "<center><textarea name='motd'>".set_value('motd')."</textarea></center><br/>";
dentro do echo msm.
obrigado a todos pela ajuda ^^




info
Grupo: Marquês
Registrado: 05/12/11
Posts: 1.2k
Reputação: +173
Gênero: Masculino
Ae galera do xtibia já tentei de várias formas colocar style ou center nesta linha só que não funcionou alguem poderia me dizer onde exatamente ficaria o style ou center dentro desta linha?
echo "<textarea name='motd'>".set_value('motd')."</textarea><br/>";aguardo resposta +rep pra quem ajudar xD