Forms are easy. HTML forms are easy enough. Basicaly it is like this
Now I do not know what you know verses do not know so I will cover it all.
POST vs GET
Get - variables are in the URL going to the script processing forum.
Post - variables are not chown in the URL However variables migh be easily passed still using the URL, be sure to guard against this.
<form action="http://URL_to_you_form_processing_script.php" Method="POST">
<!--
drop down menu
//-->
<select name="my_first_var">
<option value="option 1">option 1</option>
<option value="option 2">option 2<option>
</select>
<!--
text input
//-->
Login:
<input type="text" name="login">
<!--
password input
//-->
Password:
<input type="password" name="psswd">
<!--
text area (large amounts of test like the BBS input fields here)
//-->
<textarea name="my_text_area"></textarea>
<!--
submit button
//-->
<input type="submit" name="my submit button">
Once submited the variables will be sent to
http://URL_to_you_form_processing_script.php all the name="" will be your variables
See below
$my_first_var =// this will be either "option 1" or "option 2"
$login = //whatever the user typed in for a login name.
$password = //whatever the user typed in for a password
$my_text_area = //lots and lots of text the user typed in
Now you can mix this with Javascript, vb script, DHTML and all sorts of stuff. I recomend to start stick with basic forms. They will work with all browsers, people understand how to use them, and it will help you get a better grasp on the PHP side. Trust me, when starting any script keep it simple at first till you have the PHP portions perfect, then tweek your HTML/XML/XHTML/CSS/Javascript/VB script.
All the html and other crap is for dissplay. It is just a way to put a dress and makeup on your data. You want to focus on using the data first. Focus on the PHP and use the basic HTML crap for now. Once you get PHP perfected, the HTML will take care of itself as you look to broaden your apps capabilites and style.
Once you have the data I recomend replacing some charaters..
//replace < with <
$my_text_area = str_replace("<", "<", "$my_text_area");
/*
the above code will read through everything the
user submited in the textarea up top using the var
"$my_text_area" It will find each "<" and
replace it with < which will dissplay "<" in
html but will break and tag based code the user
tryed to submit.
*/
//replace " with "
$my_text_area = str_replace("\"", """, "$my_text_area");
/*
quotes can cause script problems. There is
something called magic quotes in PHP but we do not
know if everyone has this enabled so we play it
safe and make our script universal. You have to
escape quotes to use them. We escape charaters
with the "\" backslash. For example the "$" is
used to denote a variable. So to echo it out to
the browser...
*/
echo "\$29.95"; // will dissplay "$29.95";
//replace % with %
$my_text_area = str_replace("%", "%", "$my_text_area");
//replace @ with @
$my_text_area = str_replace("@", "@", "$my_text_area");
//replace @ with {
$my_text_area = str_replace("{", "{", "$my_text_area");