Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » General Discussions » General Discussion » HTML
Re: HTML [message #353192 is a reply to message #353106] Sat, 04 October 2008 12:09 Go to previous messageGo to previous message
Distrbd21 is currently offline  Distrbd21
Messages: 743
Registered: September 2008
Karma:
Colonel

Drkpwn3r wrote on Sat, 04 October 2008 04:36

Precisely why I suggested javascript first. *cough*

Mind you, the only reason I wrote the javascript like I did was for it to be easiest to understand while remaining fully functional.

<html>
<head>
<title>Your page name</title>
<script type="text/javascript">
<!--
function proc_form(obj)
{
	var correct_spell = "correct_spelling_here";
	var word_entry = obj.the_word;
	if ( word_entry == "" )
	{
		alert("Please enter a word to spell.");
	}
	else
	{
		if ( word_entry.value == correct_spell )
		{
			alert("You have correctly spelled " + correct_spell);
		}
		else
		{
			alert("Please try again.");
		}
	}
	return false;
}
-->
</script>
</head>
<body>
<form onsubmit="javascript:return proc_form(this);">
	<input type="text" name="the_word" />
	<input type="submit" value="Check Spelling" />
</form>
</body>
</html>


where would i put the word that i want them to spell?

I tried putting it place's but failed.


Nice code tho it work's but it keeps saying pleas try again.


Live Your Life Not Some one Else's.| Sharing Is Caring

http://dsgaming.us/distrbd21/Distrbd21%20siggy.png

Cookie Jar

Suicide
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Qantas Airlines: Repair Divison
Next Topic: Now that Tiberium is canceled...
Goto Forum:
  


Current Time: Sat Aug 03 15:07:50 MST 2024

Total time taken to generate the page: 0.00861 seconds