...or you could have specified the ACTION value in the <FORM> tag to refer to the script you want, and then just use the name of the form element as a variable instead of $_POST.
Some like this:
<FORM METHOD=GET ACTION="script.php">
<input type="text" name="text1">
and then
$old=4;
$new = "$text1 ' . $old . ' "]'; //text1, the name of the textfield, was converted into a PHP variable containing the input text), so now we can use it anywhere to refer to the contents of the textfield.