Need Help Turning This Code Into A Block

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Need Help Turning This Code Into A Block
Arfton
CZ Newbie
Arfton has been a member for over 19 year's 19 Year Member
usa.gif california.gif
Occupation: Designer / Promoter / DJ
Age: 41
Gender: Male
Website:
Status: Offline
Joined: Sep 24, 2004
0.00 posts per day
Posts: 18
Points: 2,827
AIM Address Yahoo Messenger MSN Messenger 
Hey whats up, I was wondering if anyone can turn the code below into a block I tried using the nuke tool but I keep getting a error when I make the block active.

<table width="47" border="1" cellspacing="0" cellpadding="0" height="65" bordercolor="#000000">
  <tr align="center" valign="middle">
    <td height="69">
      <table width="100%" border="0" cellspacing="0" cellpadding="2">
        <form name="login_form" action="http://gtsent.mail.everyone.net/email/scripts/loginuser.pl" method="post">
          <tr bgcolor="#000000">
            <td colspan="2" height="3"><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif" size="2">Email
              Login</font><br>
              <input type="text" name="loginName" size="15" value="" maxlength=32>
            </td>
          </tr>
          <tr bgcolor="#000000">
            <td colspan="2" height="2"><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif" size="2">Password</font><br>
              <input  type="password" name="user_pwd" size=15 maxlength=32>
            </td>
          </tr>
          <tr bgcolor="#FFFFFF">
            <td height="2">
              <input type="submit" name="login" value="Login">
            </td>
            <td height="2" nowrap><font face="Verdana, Arial, Helvetica, sans-serif" color="#FFFFFF" size="1">New
              users</font><br>
              <a href="http://gtsent.mail.everyone.net/email/scripts/serviceMenu.pl?user=new"><font face="Verdana, Arial, Helvetica, sans-serif" color="#000000" size="1"><b>sign
              up</b></font></a><font face="Verdana, Arial, Helvetica, sans-serif" color="#000000" size="1">!</font></td>
          </tr>
        </form>
      </table>
    </td>
  </tr>
</table>



Back to top Reply with quote
#2   re: Need Help Turning This Code Into A Block
jcb
CZ Active Member
 Codezwiz Site Donator
jcb has been a member for over 20 year's 20 Year Member
uk.gif
Occupation: Soldier
Age: 48
Gender: Male
Fav. Sports Team: England
Status: Offline
Joined: Oct 20, 2003
0.02 posts per day
Posts: 135
Points: 7,618
   
Here you go,

I tested it on my site and it worked fine.



<?php
if (eregi("block-Names.php", $_SERVER['SCRIPT_NAME'])) {
    Header("Location: index.php");
    die();
}

$content .= "<table width=\"47\" border=\"1\" cellspacing=\"0\" cellpadding=\"0\" height=\"65\" bordercolor=\"#000000\">
  <tr align=\"center\" valign=\"middle\">
    <td height=\"69\">
      <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"2\">
        <form name=\"login_form\" action=\"http://gtsent.mail.everyone.net/email/scripts/loginuser.pl\" method=\"post\">
          <tr bgcolor=\"#000000\">
            <td colspan=\"2\" height=\"3\"><font color=\"#FFFFFF\" face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"2\">Email
              Login</font><br>
              <input type=\"text\" name=\"loginName\" size=\"15\" value=\"\" maxlength=\"32\">
            </td>
          </tr>
          <tr bgcolor=\"#000000\">
            <td colspan=\"2\" height=\"2\"><font color=\"#FFFFFF\" face=\"Verdana, Arial, Helvetica, sans-serif\" size=\"2\">Password</font><br>
              <input  type=\"password\" name=\"user_pwd\" size=\"15\" maxlength=\"32\">
            </td>
          </tr>
          <tr bgcolor=\"#FFFFFF\">
            <td height=\"2\">
              <input type=\"submit\" name=\"login\" value=\"Login\">
            </td>
            <td height=\"2\" nowrap><font face=\"Verdana, Arial, Helvetica, sans-serif\" color=\"#FFFFFF\" size=\"1\">New
              users</font><br>
              <a href=\"http://gtsent.mail.everyone.net/email/scripts/serviceMenu.pl?user=new\"><font face=\"Verdana, Arial, Helvetica, sans-serif\" color=\"#000000\" size=\"1\"><b>sign
              up</b></font></a><font face=\"Verdana, Arial, Helvetica, sans-serif\" color=\"#000000\" size=\"1\">!</font></td>
          </tr>
        </form>
      </table>
    </td>
  </tr>
</table> ";
?>



Best Regards

Jon



_________________
PHP Super NooB
Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum