Are you trying to do it in Javascript or PHP?
If you are doing it in PHP, what Frederick said is correct. You access form elements by their names. If you have a text box on a form called "MyTextBox" then you access it using either $GET or $POST (depending on the method you used to pass the data).