Again,
I'm not sure what you mean by "adding it to the url in a form." Do you have a show-source file set up I can see?
In any case, this is how the form will work:
Declare your form by using good 'ole form tag:
I haven't seen much of a difference between POST and GET for the method. I generally go with "GET" if the php code is actually on the displayed page, and "POST" if the php code to execute the program is on its own file and thus calls a new page with the display.
Put the page that holds the code that will use the data from the form. So if I have code that will take the form data and insert it into a DB on a file called "execute_app.php", I would put that in the Action="" attribute:
<FORM METHOD="POST" NAME="name" ACTION="execute_app.php">
From there, just build your form using all the standard elements (Inputs, buttons, etc). The NAME of these elements will be the name of the variable passed from the form. What the user types in or chooses from the form element will become the value for that variable. So an input that looks like:
<INPUT TYPE="TEXT" NAME="firstname" VALUE="">
will create the variable $firstname and value will be what the person types in (or if you pre-set a value, that will the var's value).
Once your all set and done, and the form is used, this is what will happen. The form will call the page in the ACTION="" just as if you created it as a link. Then all the variables & values created from the form elements will be tagged on to the end just like if you manually created the link.
So when you press submit, the Browser would go to the URL in the ACTION with the variables and it would look somethign like this:
http://www.yourdomain.com/execute_app.php?firstname=bob&lastname=smith&city=hereville&state=CA&preference=pizza
Get it?
Jeof
PS- Forms are really versatile things when you empower them with PHP & javascript. If you have a page where you want to confirm the data of the form before inserting it into a DB, you could create your second page just like the first but for all the the values of the form insert this code:
<?php echo $variable_name; ?> so it would like:
<INPUT TYPE="TEXT" NAME="firstname" VALUE="<?php echo $firstname; ?>">
This will take what the user inputted in the first form and display it in the second. They can make changes directly to the data, and then press submit. The form action will start anew with whatever values are in the form elements, and take it from there.