Help with HTML script please. Making private message box

Jon Boy

New Member
Hey there, was just wondering if there was a way using HTML if any of you people know how or could make a simple piece of coding stuff in HTML for me. But just put say 2 lines in as an example so I can finish it myself.

Basically I want it so you can fill in fields. Of like boxes (can do that). But I want it so when you click submit, it will send the answers to me (preferably not email but to say anouther page no one knows a link to, so its like logged). But if it has to go to my email thats ok. So really all I have the problem is is making a button send the infomation, really all I need is what you have to type to make it do that.

I want this because I want to make a survey thingy, just for fun really between friends and other aquaintences.

Thanks for anyhelp it would be much appretiated.

Jon

(Ohh btw im going to host it on one of these free server hosting thingies like geocities or something)
 
well u need some scripting language like php, asp, ....
in addition I dont think that free hosting do allow script hosting..
anyway, for example to send mail via php u must use the Mail function
mail($to,$subject,$txt,$headers);

To use it , create a php file , an example of this is:


<?php

$to = "[email protected]";
$subject = "My subject";
$txt = "Hello world!";
$headers = "From: [email protected]" . "\r\n" .
"CC: [email protected]";

mail($to,$subject,$txt,$headers);
?>

u need to have PHP server running and Mail server also
 
rather then email the results I'd suggest finding a free host that provides PHP/MySQL (they are out there, I don't know if Geocities or angelfire and the like provide them but Google knows who does :D). The you make a table and store the results there (ie. insert into answers values(name, answer1, answer2, answer3...);

This would allow you to extract the answers easier. For example you could say select name from answers where answer1="yes";
 
Back
Top