• Welcome to Overclockers Forums! Join us to reply in threads, receive reduced ads, and to customize your site experience!

Quick question on 'submit' functions with html (easy question)

Overclockers is supported by our readers. When you click a link to make a purchase, we may earn a commission. Learn More.

maxxoverclocker

Member
Joined
Jul 13, 2004
Location
Vista, CA
I have never used .asp before (strictly html and even then im more of a flash guy) here's the deal, i went to a website and found this:

Code:
<html>
<body>

<form name="input" action="vctvcode.asp" method="get">

Student ID Number: 
<input name="id" type="text" value="000000" size="10" maxlength="6">
<br>VCTV Code: 
<input type="text" name="vctvcode" value="00000" size="10">
<br>
<input type="submit" value="Submit">

</form> 



</body>
</html>

lol... um yeah i have no idea where to go from here (don't know what i need for the .asp page either) and ANOTHER addition was we want to prevent multiple logins by the same person and from people entering random id numbers to rack up points for their class

Essentially what we want is to have 2 places for text, one is the 6 digit student id number and the other to be the 'vctv code' which they will find on the morning announcements and be able to enter into the website for submission to some sort of file or database so we can find their id number and the vctv code they entered. if anyone could give me some tips/if there's an easier way to do this with dreamweaver/flash tell me. thank you so much
 
I would use php. But thats only because I don't know asp :p. When you submit the form, you'll send the two variables to vctvcode.asp, which can process them and do whatever is necessary.
 
kayson said:
I would use php. But thats only because I don't know asp :p. When you submit the form, you'll send the two variables to vctvcode.asp, which can process them and do whatever is necessary.

hehe and how would i go about using php? (never used anything other than htm) thx
 
Well first of all your server needs to have php installed on it. Then you make a .php file with the code in it. Basically, a .php file is html, but you can use <?php code ?> to add some php code. Here's an example:
Code:
<html>
<head>
</head

<body>
<?php
echo "Hello world";
?>
</body>
</html>
the echo command prints html to the browser. So you could also echo "<img src='....'>". Then you have to have mysql installed (which is database software) and learn how to work with that. You can then use if/then statements and db queries to verify passwords and redirect to places. I would recommend picking up a book if you want to learn php and mysql.
 
gah im still stuck here you guys, i need to get this done soon and i don't have the time to learn a new scripting language lol, so far what i have is a flash animation with a password set (vctv code) and if they type in the right one it'll take em to a portion of the animation that is only able to be seen after a password is typed in, so now i ask you; is there an easy way to automate something to send 2 fields that the user will type in into some sort of an email or text file that can be saved on the server. thanks for your help, and sorry if im still confusuing lol
 
Back