Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.