I made an application for recruitment for a counter-strike clan. I made it in html. When I posted the application to a new block, it just took me to my homepage. So I figured maybe it was the code that nuke didn't like. So I converted it to PHP, and the same thing happend. What should I do[php:1:c682ca9958]!<?php
echo "<head>\n";
echo "</head>\n";
echo "<div align=\"center\" style=\"width: 235; height: 157\"><br /><br />\n";
echo "<form action=\"http://pub25.bravenet.com/emailfwd/senddata.php\" method=\"post\" enctype=\"multipart/form-data\">\n";
echo "<input type=\"hidden\" name=\"usernum\" value=\"2130980781\" />\n";
echo "<input type=\"hidden\" name=\"cpv\" value=\"1\" />\n";
echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" bgcolor=\"#999999\" height=\"233\" width=\"196\"><tr><td height=\"100%\" width=\"231\">\n";
echo "<table border=\"0\" cellpadding=\"10\" cellspacing=\"1\" bgcolor=\"#999999\" width=\"231\" height=\"149\"><tr bgcolor=\"cornsilk\"><td width=\"100%\" height=\"100%\" align=\"center\">\n";
echo "<b><font face=\"Verdana,Arial,Helvetica\" size=\"2\">SMN CLAN RECRUIT APPLICATION</font><font face=\"Verdana,Arial,Helvetica\" size=\"1\"><br>\n";
echo "<br>\n";
echo "Real Name:<br>\n";
echo "</font></b><input type=\"text\" name=\"Real_Name\" size=\"23\" /><br />\n";
echo "<b><font face=\"Verdana,Arial,Helvetica\" size=\"1\">Age:<br>\n";
echo "</font></b><input type=\"text\" name=\"Age\" size=\"23\"><br />\n";
echo "<b><font face=\"Verdana,Arial,Helvetica\" size=\"1\">CS Name:<br>\n";
echo "</font></b><input type=\"text\" name=\"CS_Name\" size=\"23\" /><br />\n";
echo "<b><font face=\"Verdana,Arial,Helvetica\" size=\"1\">E-mail:<br>\n";
echo "</font></b><input type=\"text\" name=\"E-Mail_Address\" size=\"23\"><br />\n";
echo "<font face=\"Verdana,Arial,Helvetica\" size=\"1\"><b>WonID1:<br>\n";
echo "</b></font><input type=\"text\" name=\"Won_ID1\" size=\"23\"><font face=\"Verdana,Arial,Helvetica\" size=\"1\"><b><br>\n";
echo "WonID#2<br>\n";
echo "</b></font><input type=\"text\" name=\"Won_ID2\" size=\"23\"><font face=\"Verdana,Arial,Helvetica\" size=\"1\"><b><br>\n";
echo "OGL Username:<br>\n";
echo "</b></font><input type=\"text\" name=\"OGL_Name\" size=\"23\"><font face=\"Verdana,Arial,Helvetica\" size=\"1\"><b><br>\n";
echo "League Experience: (ie. Cal, UGS, OGL, etc...)<br>\n";
echo "</b></font><input type=\"text\" name=\"League_Experience\" size=\"23\"><br />\n";
echo "<font face=\"Verdana,Arial,Helvetica\" size=\"1\"><b>Special Skills: (ie. Webdesign,\n";
echo "Web Art, etc....)<br>\n";
echo "</b></font><input type=\"text\" name=\"Special_Skills\" size=\"23\"><br />\n";
echo "<br /><div align=\"center\">\n";
echo "<input type=\"submit\" name=\"submit\" value=\" Send \">\n";
echo "<input type=\"reset\" name=\"reset\" value=\" Clear \">\n";
echo "</div></td></tr></table></td></tr></table>\n";
echo "<br />\n";
echo "</form></div>";
?>[/php:1:c682ca9958]
Thats the code and it doesn't install the block it just takes me to my homepage. Any ideas? I have 6.7.[php:1:c682ca9958][/php:1:c682ca9958]
Raven General
Joined: Mar 22, 2003
Posts: 5233
Location: USA
Posted:
Mon Jun 30, 2003 11:22 am
If this truly is a block, then you don't use echo statements. You assign those statements to the $content variable. Then the block code in nuke automatically displays it. So, in place of the echo statements, substitute $content = "blah,blah"; for the first one and $content .= "blah, blah"; for all the rest.
Raven you are truly nuke intelligent. But the problem lies in me. You are going to have to speak in retard for me to understand. Im getting what you are saying a little bit. Here is what I don't understand. I would very much so rather use HTML then PHP in this block so it is easier for me to edit later. I dont' know PHP well at all. I know HTML very very well. The only thing is. Everytime I try to create a new block, I post the HTML and then click ok/create and it just sends me to my homepage not creating the block. Same thing happends in content. Let me paste the HTML Code. I think I would be able to work better with that.
Now save this to a file called blocks/block-recruit.php. Upload it to your blocks directory. Activate it. Does it work? Make sure that there are no spaces at all after the 2 _HTML_ tags, only carriage returns.
OK its up and working. Only remaining issue is why is the topic heading underneath the form? that the only thing I am not understanding and don't know how to fix http://www.smnclan.net
Raven General
Joined: Mar 22, 2003
Posts: 5233
Location: USA
Posted:
Mon Jun 30, 2003 1:11 pm
zip up the block and send it to raven at gaylenandmargie dot com
Hi, I have a similar block with a form for team registration with the info to be emailed to league staff, but I can't seem to get the variables passed to my senddata script. My submit button is posting to the correct senddata.php, but the variables don't seem to be passed on. I have searched through this forum and still can't figure out what I'm missing.
Here is my block-signup.php:
Code:
<?
if (eregi("block-signup.php", $_SERVER['PHP_SELF'])) {
Header("Location: index.php");
die();
}
if (!ereg("^[a-zA-Z0-9_]+@[a-zA-Z0-9\-]+\.[a-zA-Z0-9\-\.]+$", $email))
{
echo "That is not a valid email address. Please return to the"
." previous page and try again.";
exit;
}
// mail($toaddress, $subject, $mailcontent, $fromaddress);
?>
<html>
<head>
<title>TGL Team Submission Sent</title>
<link href="themes/Avocodo/style/style.css" rel="stylesheet" type="text/css">
</head>
<body>
<h1>Team Data Submitted</h1>
<p><? echo nl2br($mailcontent); ?></p>
<p>Thank you for enrolling your team at TGL</p>
</body>
</html>
The block can be seen at www.torchgamingleague.com
Hopefully you can point me in the right direction. Thank you in advance.
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