Are you talking about getting the data from the user in the webpage? If you are, then you can use a form. Depending on the method of the form wether it is post or get, Just set the action to the php script that will enter into the database and use the $HTTP_POST_VARS or $_POST if it is post method or you can use $HTTP_GET_VARS or $_GET to extract the variables if the form was sent to the script by the get method
The html for the form looks somewhat like
hi all im wondering what i can do to stop this happening
every time i click submit on a form all this come in address bar after file name ...