HTML [message #352961] |
Thu, 02 October 2008 19:03 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
Hey guy's i would like to know if this would be html or not but,
I would like to know away to find out if an anwser is correct or not.
So like i would ask in the html code, how to spell announced and you would have a place to give an anwser and when you click submit it will tell you if your right or wrong.
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|
|
Re: HTML [message #352966 is a reply to message #352961] |
Thu, 02 October 2008 20:18 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
ok how would i go about doing that?
Im stupid when it comes to html and all that.
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|
Re: HTML [message #352972 is a reply to message #352961] |
Thu, 02 October 2008 21:48 |
|
Dave Anderson
Messages: 1953 Registered: December 2004 Location: United States
Karma: 0
|
General (1 Star) |
|
|
This isn't really a great place to ask buddy. If you spend some time Google'ing around you will find what you're looking for, but its going to take more than five minutes of your time. I also suggest visiting some web development forums.
David Anderson
Founder, Software Consultant
DCOM Productions
Microsoft Partner (MSP)
|
|
|
Re: HTML [message #352979 is a reply to message #352961] |
Thu, 02 October 2008 23:25 |
|
Goztow
Messages: 9737 Registered: March 2005 Location: Belgium
Karma: 13
|
General (5 Stars) Goztoe |
|
|
PHP and html combo, name the file test.php:
if ($_SERVER['REQUEST_METHOD'] == 'POST'){
if ($_POST['name'] == "announced") {
echo "announced was spelled correctly";
}else{
echo "announced was not spelled correctly";
}
}else{
echo "<form method=POST action='test.php'>
<INPUT TYPE='hidden' NAME='submit' VALUE='lalalalala'>
How do you spell announced?
<BR>
<INPUT TYPE='text' NAME='name'>
<br><br>
<INPUT TYPE='submit' VALUE='Login'>
</form>";
}
Untested so might contain some typing errors.
You can find me in The KOSs2 (TK2) discord while I'm playing. Feel free to come and say hi! TK2 discord
|
|
|
|
Re: HTML [message #353085 is a reply to message #353060] |
Fri, 03 October 2008 18:05 |
nopol10
Messages: 1043 Registered: February 2005 Location: Singapore
Karma: 0
|
General (1 Star) |
|
|
If you're into Microsoft stuff, you could use Visual Web Developer Express to make these sort of web forms.
www.asp.net has all the tutorials you'll need for that.
nopol10=Nopol=nopol(GSA)
|
|
|
Re: HTML [message #353104 is a reply to message #352979] |
Sat, 04 October 2008 01:53 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
[quote title=Goztow wrote on Fri, 03 October 2008 01:25]PHP and html combo, name the file test.php:
if ($_SERVER['REQUEST_METHOD'] == 'POST'){
if ($_POST['name'] == "announced") {
echo "announced was spelled correctly";
}else{
echo "announced was not spelled correctly";
}
}else{
echo "<form method=POST action='test.php'>
<INPUT TYPE='hidden' NAME='submit' VALUE='lalalalala'>
How do you spell announced?
<BR>
<INPUT TYPE='text' NAME='name'>
<br><br>
<INPUT TYPE='submit' VALUE='Login'>
</form>";
}
[/code]
Show's this in explore
if ($_SERVER['REQUEST_METHOD'] == 'POST'){ if ($_POST['name'] == "announced") { echo "announced was spelled correctly"; }else{ echo " announced was not spelled correctly"; } }else{ echo "
Would i have to upload the file somwhere?
when i hit the login button it says page cannot be displayed.
And i do google all the time and i looked at alot of site's befor i came here.
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|
|
|
Re: HTML [message #353168 is a reply to message #353104] |
Sat, 04 October 2008 10:25 |
|
danpaul88
Messages: 5795 Registered: June 2004 Location: England
Karma: 0
|
General (5 Stars) |
|
|
Distrbd21 wrote on Sat, 04 October 2008 09:53 |
Goztow wrote on Fri, 03 October 2008 01:25 | PHP and html combo, name the file test.php:
if ($_SERVER['REQUEST_METHOD'] == 'POST'){
if ($_POST['name'] == "announced") {
echo "announced was spelled correctly";
}else{
echo "announced was not spelled correctly";
}
}else{
echo "<form method=POST action='test.php'>
<INPUT TYPE='hidden' NAME='submit' VALUE='lalalalala'>
How do you spell announced?
<BR>
<INPUT TYPE='text' NAME='name'>
<br><br>
<INPUT TYPE='submit' VALUE='Login'>
</form>";
}
|
Show's this in explore
if ($_SERVER['REQUEST_METHOD'] == 'POST'){ if ($_POST['name'] == "announced") { echo "announced was spelled correctly"; }else{ echo " announced was not spelled correctly"; } }else{ echo "
Would i have to upload the file somwhere?
when i hit the login button it says page cannot be displayed.
And i do google all the time and i looked at alot of site's befor i came here.
|
You have to put <?php at the start and ?> at the end to activate PHP mode on the file. Also make sure the file has a .php extension.
[Updated on: Sat, 04 October 2008 10:29] Report message to a moderator
|
|
|
Re: HTML [message #353192 is a reply to message #353106] |
Sat, 04 October 2008 12:09 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
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
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|
Re: HTML [message #353195 is a reply to message #353106] |
Sat, 04 October 2008 12:15 |
|
Ethenal
Messages: 2532 Registered: January 2007 Location: US of A
Karma: 0
|
General (2 Stars) |
|
|
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 = "__RIGHT HERE__correct_spelling_here__RIGHT 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>
|
Seemed pretty obvious but okay...
-TLS-DJ-EYE-K wrote on Mon, 18 March 2013 07:29 | Instead of showing us that u aren't more inteligent than a Toast, maybe you should start becomming good in renegade
|
[Updated on: Sat, 04 October 2008 12:16] Report message to a moderator
|
|
|
Re: HTML [message #353250 is a reply to message #353195] |
Sat, 04 October 2008 20:16 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
Ethenal wrote on Sat, 04 October 2008 14:15 |
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 = "__RIGHT HERE__correct_spelling_here__RIGHT 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>
|
Seemed pretty obvious but okay...
|
LOL Thank you you where a big help.
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
[Updated on: Sat, 04 October 2008 20:25] Report message to a moderator
|
|
|
Re: HTML [message #353417 is a reply to message #352961] |
Mon, 06 October 2008 00:57 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
would anyone know how to allways allow activeX in the broswer it allways ask's me to allow it get's old.
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|
|
Re: HTML [message #353419 is a reply to message #353418] |
Mon, 06 October 2008 01:16 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
Drkpwn3r wrote on Mon, 06 October 2008 03:05 | That's because you're running the script locally, one of many annoyances that leads to IE's downfall IMO.
At least for testing at file:///
|
I just got it to allow all activeX controls..
I uploaded it so everyone can see.
-
Attachment: Blah.html
(Size: 0.80KB, Downloaded 107 times)
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|
Re: HTML [message #353447 is a reply to message #352961] |
Mon, 06 October 2008 08:39 |
|
Goztow
Messages: 9737 Registered: March 2005 Location: Belgium
Karma: 13
|
General (5 Stars) Goztoe |
|
|
I'm sorry, i thought u were just looking at code, but flippantly u're looking for someone who can make code for something and implement it in a forum?
You can find me in The KOSs2 (TK2) discord while I'm playing. Feel free to come and say hi! TK2 discord
|
|
|
Re: HTML [message #353457 is a reply to message #353419] |
Mon, 06 October 2008 10:52 |
|
Prulez
Messages: 439 Registered: August 2005 Location: The Netherlands
Karma: 0
|
Commander |
|
|
Distrbd21 wrote on Mon, 06 October 2008 10:16 |
Drkpwn3r wrote on Mon, 06 October 2008 03:05 | That's because you're running the script locally, one of many annoyances that leads to IE's downfall IMO.
At least for testing at file:///
|
I just got it to allow all activeX controls..
I uploaded it so everyone can see.
|
Your code is case sensitive
("announced" doesn't work, but "Announced" does)
nikki6ixx wrote on Fri, 08 May 2009 19:47 | Every so often, I get this positive feeling that humanity can somehow, possibly attain pure awesomeness, and enlightenment, and that there is light at the end of the road for us all. However, I only need to go to the latest HUD thread at RenForums to remind me of how dumb I was for thinking such stupid things.
|
[Updated on: Mon, 06 October 2008 10:53] Report message to a moderator
|
|
|
Re: HTML [message #353469 is a reply to message #352961] |
Mon, 06 October 2008 12:35 |
Drkpwn3r
Messages: 317 Registered: March 2004 Location: Unknown to you.
Karma: 0
|
Recruit |
|
|
Updated the script to remove case sensitivity because I was bored and just because I can:
<html>
<head>
<title>Your page name</title>
<script type="text/javascript">
<!--
function proc_form(obj)
{
var correct_spell = "correct_spelling_here";
var entered_word = obj.the_word.value.toLowerCase();
if ( entered_word == "" )
{
alert("Please enter a word to spell.");
}
else
{
if ( entered_word == 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>
[Updated on: Mon, 06 October 2008 12:37] Report message to a moderator
|
|
|
Re: HTML [message #353560 is a reply to message #352961] |
Tue, 07 October 2008 01:38 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
how can i install the code more than once?
i have been trying but all i get is the frist words say plase try again and the last one works.
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|
Re: HTML [message #353590 is a reply to message #353560] |
Tue, 07 October 2008 10:43 |
Drkpwn3r
Messages: 317 Registered: March 2004 Location: Unknown to you.
Karma: 0
|
Recruit |
|
|
Distrbd21 wrote on Tue, 07 October 2008 04:38 | how can i install the code more than once?
i have been trying but all i get is the frist words say plase try again and the last one works.
|
Should just have to copy/paste, then edit a bit. There's no "installation" of code, just updating/changing.
I don't know any reason why you'd be getting the "Please try again." response unless you forgot to update the correct_spell variable.
[Updated on: Tue, 07 October 2008 10:45] Report message to a moderator
|
|
|
Re: HTML [message #353636 is a reply to message #352961] |
Tue, 07 October 2008 18:42 |
|
Distrbd21
Messages: 743 Registered: September 2008
Karma: 0
|
Colonel |
|
|
Heres what i did.
onipt
<head>
<title></title>
<script type="text/javascript">
<!--
function proc_form(obj)
{
var correct_spell = "point";
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>
<br>uesoh
<html>
<head>
<script type="text/javascript">
<!--
function proc_form(obj)
{
var correct_spell = "house";
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>
</br>
ldsenac
<br>
<html>
<head>
<script type="text/javascript">
<!--
function proc_form(obj)
{
var correct_spell = "candles";
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>
</br>
paeredet
<br>
<html>
<head>
<script type="text/javascript">
<!--
function proc_form(obj)
{
var correct_spell = "repeated";
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>
</br>
celaips
<br>
<html>
<head>
<script type="text/javascript">
<!--
function proc_form(obj)
{
var correct_spell = "special";
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>
</br>
necdlg
<br>
<html>
<head>
<script type="text/javascript">
<!--
function proc_form(obj)
{
var correct_spell = "glanced";
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>
Live Your Life Not Some one Else's.| Sharing Is Caring
Cookie Jar<glome> Who stole the cookie from the cookie jar?!
<content> glome stole the cookie from the cookie jar!
<glome> Who me?!
<content> Yes you!
<glome> Couldn't be!
<content> Then WHO?!!
<glome> Woody stole the cookie from the cookie jar!
*** glome has been kicked by DrWoody (fuck you i didn't touch the motherfucking cookie, bitch
Suicide<TB> I was depressed last night so I called the Suicide Life Line.
<TB> I reached a call center in Pakistan.
<TB> I told them I was suicidal.
<TB> They got all excited and asked if I could drive a truck
|
|
|
|
Re: HTML [message #353650 is a reply to message #352961] |
Tue, 07 October 2008 23:54 |
Drkpwn3r
Messages: 317 Registered: March 2004 Location: Unknown to you.
Karma: 0
|
Recruit |
|
|
Okay, here's what you do:
Copy my code, open your document, then press these key combinations in this exact sequence:
Ctrl+A
Ctrl+V
Ctrl+S
And then update the word to check against.
[Updated on: Tue, 07 October 2008 23:55] Report message to a moderator
|
|
|