Have the page with the framesets point to name.htm where you want them to submit the message. It's not a login page, but adding that shouldn't be too hard with a little modification to name.htm.
-Users don't need to know the password to submit messages.
-If the first character in the message is "/" then their name won't be added to the message.
name.htm:
message.php:
Doing it in PHP was much easier. I'm still having problems doing it in ASP, but I'll post again when I get it working.
-Users don't need to know the password to submit messages.
-If the first character in the message is "/" then their name won't be added to the message.
name.htm:
Code Select
<head><title>Enter Your Name</title>
<script language="Javascript"><!--
function sf(){document.forms[0].Name.focus();}
//--></script></head>
<body bgcolor="black" onLoad=sf()>
<form method="GET" action="/message.php">
<font color=white>Enter Your Name to Chat: <input type="text" name="Username" size="25" maxlength="20">
<input type="submit" value="Submit" name="cmdSubmit"></form></body>
message.php:
Code Select
<?php
$BotName="YourBotName";
$Password="YourChatPassword";
$Username=$_GET['Username'];
$RedirectURL="http://www.yourwebhost.com/message.php?Username=" . $Username;
if ($message != '' && $message{0} != '/') {
$Msg=$Username . ": " . $message;
$RemoteURL = "http://www.valhallalegends.com/skywing/isapi/BinaryChatISAPI.dll?sendtext&bot=" . $BotName . "&message=" . $Msg . "&password=" . $Password . "&redirect=" . $RedirectURL;
header("location:$RemoteURL");
} else {
if ($message{0} == '/') {
$Msg=$message;
$RemoteURL = "http://www.valhallalegends.com/skywing/isapi/BinaryChatISAPI.dll?sendtext&bot=" . $BotName . "&message=" . $Msg . "&password=" . $Password . "&redirect=" . $RedirectURL;
header("location:$RemoteURL");
}
}
?>
<script language="Javascript"><!--
function sf(){document.forms[0].message.focus();}
//--></script>
<body bgcolor="black" onLoad=sf()>
<form method="GET" action="/message.php">
<input type="hidden" name="Username" value="<?php echo $_GET['Username']; ?>">
<input type="text" name="message" size="100">
<input type="submit" value="Send" name="cmdSubmit"></form>
Doing it in PHP was much easier. I'm still having problems doing it in ASP, but I'll post again when I get it working.