Jump to content

Photo

How is this for a chatbox?


  • Please log in to reply
1 reply to this topic

#1 Soarin

Soarin

    Chosen One

  • Members

Posted 20 July 2016 - 09:46 AM

So here is a little bit of code for a chat on a website

Tell what you guys think.
 

<div style="position: absolute; top: 130px; left: 1600px;" id="ShoutBox">
			<div id="block-two">
				<form style="width: 250px;" action="<?php echo htmlentities($_SERVER["PHP_SELF"]); ?>" method="post">
						<b style="margin-left: 50px;" id="ShoutBox">
							TriforceBay ShoutBox
						</b><br/>
							<?php 
								$Name = "";
								$Date = "";
								$Time = "";
								$Message = "";
								$Maxlength = "";
										echo "<hr size='2'>";
									echo "<cite>Name:&nbsp;</cite>" . $Name . "<br/>";
										echo "<hr size='2'>";
									echo "<cite>Date:&nbsp;</cite>" . $Date . "<br/>";
										echo "<hr size='2'>";
									echo "<cite>Time:&nbsp;</cite>" . $Time . "<br/>";
										echo "<hr size='2'>";
									echo "<cite>Mesage:&nbsp;</cite>" .  $Message . "<br/>";
										echo "<hr size='2'>";
							?>
								<input type="submit" value="Shout" class="Button-1"/>
								<input type="text" size="17" disabled="disbled">
								<input type="reset" value="Clear"/>
				</form>
			</div>
		</div>
Still working on it though. Would this be good to use on a site?

Edited by Soarin, 20 July 2016 - 09:47 AM.


#2 Timelord

Timelord

    The Timelord

  • Banned
  • Location:Prydon Academy

Posted 24 July 2016 - 11:00 PM

I've seen stuff like this before, where it stores strings in a buffer, and then the user must refresh, or it auto-refreshes every so often.

 

To be honest, if you want opinions on it, you should probably set it up on a server, so that people are able to try it out. Not many users here will be able to judge simply by looking at it, and it's probably overly simplified to be a thrill to use.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users