l3vi
04-05-2003, 02:07 AM
Okie dokie, I just made sumthing that does the exact same thing this script does, and it worked, now I tried it but changed the look of the page, and it does not want to work... Could you please tell me where I have messed up in the script?? Thanks a bunch!
<?php
$File = "$_POST['type'].txt";
$Open = fopen($File, "a");
if ($Open){
fwrite($Open, "<a href='boards/boards.php?type=$_POST['type']&board=$_POST['Num']'>$_POST['Nam']</a>\r\n");
fclose ($Open);
} else {
print ("Your file could not be added to the board list due to an error!");
}
?>
<form action="admin.php" method="POST">
<table cellspacing="0" style="border:0px solid black;width:400;">
<tr>
<td style="border:1px solid black;width:100;border-right:medium none"><center>Order #</center></td>
<td style="border:1px solid black;width:633;"><center>Board Name</center></td>
</tr>
<tr>
<td style="border:1px solid black;width:100;border-right:medium none;border-top:medium none;"><center><input type="TEXT" name="Num" size="1"></center></td>
<td style="border:1px solid black;width:633;border-top:medium none;"><center><input type="TEXT" name="Nam" size="40"></center></td>
</tr>
</table>
Public: <input type="radio" name="type" value="Pub"><br>Private:<input type="radio" name="type" value="Priv"><br>
<input type="Submit" value="Create New Public Board">
</form>
BTW, I do have an HTML page, but its the same as everything thats at the bottom half of my page... Please tell me whats wrong w/ my script! Once again, thanks a TON in advance!:thumbsup: :)
<?php
$File = "$_POST['type'].txt";
$Open = fopen($File, "a");
if ($Open){
fwrite($Open, "<a href='boards/boards.php?type=$_POST['type']&board=$_POST['Num']'>$_POST['Nam']</a>\r\n");
fclose ($Open);
} else {
print ("Your file could not be added to the board list due to an error!");
}
?>
<form action="admin.php" method="POST">
<table cellspacing="0" style="border:0px solid black;width:400;">
<tr>
<td style="border:1px solid black;width:100;border-right:medium none"><center>Order #</center></td>
<td style="border:1px solid black;width:633;"><center>Board Name</center></td>
</tr>
<tr>
<td style="border:1px solid black;width:100;border-right:medium none;border-top:medium none;"><center><input type="TEXT" name="Num" size="1"></center></td>
<td style="border:1px solid black;width:633;border-top:medium none;"><center><input type="TEXT" name="Nam" size="40"></center></td>
</tr>
</table>
Public: <input type="radio" name="type" value="Pub"><br>Private:<input type="radio" name="type" value="Priv"><br>
<input type="Submit" value="Create New Public Board">
</form>
BTW, I do have an HTML page, but its the same as everything thats at the bottom half of my page... Please tell me whats wrong w/ my script! Once again, thanks a TON in advance!:thumbsup: :)