you can put the text in the url either using a form or by manually inserting it.
this is the $_GET function. so if you wanted to collect a name then display it you would ...
<form method="get" action="get_the_data.php">
<input type="text" name="name">
<input type="submit" name="Submit" value="Submit">
</form>
get_the_data.php page
<?php
$name = $_GET['name'];
echo $name;
?>