• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Collect info on a webpage? code ideas?

Mellow

Senior member
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
 
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...
 
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 🙂
 
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.
 
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.
 
Back
Top