zero_ZX Posted December 31, 2007 Share Posted December 31, 2007 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 More sharing options...
GingerRobot Posted December 31, 2007 Share Posted December 31, 2007 How about actually showing us the error. And the line in question. And while you're at it, wrap your code inside tags (without the spaces) Link to comment https://forums.phpfreaks.com/topic/83826-solved-unexpected-t_string/#findComment-426592 Share on other sites More sharing options...
rajivgonsalves Posted December 31, 2007 Share Posted December 31, 2007 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; ?> Link to comment https://forums.phpfreaks.com/topic/83826-solved-unexpected-t_string/#findComment-426594 Share on other sites More sharing options...
zero_ZX Posted December 31, 2007 Author Share Posted December 31, 2007 tanks rajivgonsalves! You solved my problem topic marked as solved. Link to comment https://forums.phpfreaks.com/topic/83826-solved-unexpected-t_string/#findComment-426636 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.