Jump to content

[SOLVED] unexpected t_string


zero_ZX

Recommended Posts

hi guys this is a part of my config file:

$INFO['hp_message'] = '<div class="borderwrap"><div class="maintitle" align="center">Welcome To {*boardname*} {*username*}</div> <table align="center" width="100%" class="row1" cellspacing="0" cellpadding="5">  <tr>    <td align="center">      By <a href="index.php?act=reg">Registering</a>, You Will Have For Access To Many Things Than A Guest Would.<br />      So Come & Join Us Today.<br /><br />If You Are A Current Member, Please Login Below<br />      <form action="index.php?act=login&CODE=01&CookieDate=1" method="post" name="LOGIN">      User: <input type="text" maxlength="64" name="UserName" class="forminput" size="10" />        Pass: <input type="password" name="PassWord" class="forminput" size="10" />        <input type="submit" name="submit" value="Login" class="forminput" /> <input type="button" value="Register" class="forminput" onclick="window.location='index.php?act=reg'" /> <input type="button" value="Close" class="forminput" onclick="hide_hover_prompt();" />    </td>  </tr>  <tr>    <td align="center"><div id="hptimer"><!--HP_TIMER--></div></td>  </tr> </table></form></div>';

 

I get unexptected t_string and i cant see why.. can you please help me? :)

Link to comment
https://forums.phpfreaks.com/topic/83826-solved-unexpected-t_string/
Share on other sites

try this its called the heredoc string

 

<?php
$INFO['hp_message']         =   <<<EOF
<div class="borderwrap"><div class="maintitle" align="center">Welcome To {*boardname*} {*username*}</div> <table align="center" width="100%" class="row1" cellspacing="0" cellpadding="5">   <tr>     <td align="center">       By <a href="index.php?act=reg">Registering[/url], You Will Have For Access To Many Things Than A Guest Would.
       So Come & Join Us Today.

If You Are A Current Member, Please Login Below
       <form action="index.php?act=login&CODE=01&CookieDate=1" method="post" name="LOGIN">       User: <input type="text" maxlength="64" name="UserName" class="forminput" size="10" />         Pass: <input type="password" name="PassWord" class="forminput" size="10" />        <input type="submit" name="submit" value="Login" class="forminput" /> <input type="button" value="Register" class="forminput" onclick="window.location='index.php?act=reg'" /> <input type="button" value="Close" class="forminput" onclick="hide_hover_prompt();" />     </td>   </tr>   <tr>     <td align="center"><div id="hptimer"><!--HP_TIMER--></div></td>   </tr> </table></form></div>
EOF;
?>

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.