Collect info on a webpage? code ideas?

Mellow

Senior member
Aug 3, 2004
366
0
0
Ok, so I know some pretty basic HTML, PYTHON, and VB (what my school offers) and I want to create a little input box for my website. The idea is

There will be an input box with a command button next to it, The user will input a number or 2, maybe their name, and the input box would create an email and send it to my address (or is there an easier way to collect the data?) anyone have any idea? thanks
 

aloser

Senior member
Nov 20, 2004
511
1
81
All you need is a simple form, such as:

<html>
<body>
<form action=send.ext, where .ext=.php or .cgi or .pl or whatever language you prefer>
<input info here>
<submit button>
</body>
</html>

the "action" line is what makes the form submit, and that's where you have the line to email your script results.

Hope that's what you wanted...
 

Mellow

Senior member
Aug 3, 2004
366
0
0
could you elaborate on the form action part? namely what the ext mean, and the where?
 

screw3d

Diamond Member
Nov 6, 2001
6,906
1
76
send.extension = could be send.php send.pl send.cgi send.asp or whatever language you choose.

send.ext will then grab the data and store it in a database or just in a simple text file. trivial stuff really :)
 

znaps

Senior member
Jan 15, 2004
414
0
0
Use PHP as most web hosts support it, should be a simple 10 line script. There are plenty of resources out there to show you how to do this in PHP.
 

screw3d

Diamond Member
Nov 6, 2001
6,906
1
76
Well, I was bored and localhost was sitting around doing nothing ;)

Did this using PHP. This will save a name to data.txt line by line.