OK I'm bending the rules a little here but I'll just add that echo $something will work
only if you have globals on.
The more usual (and secure) way is to use the following:
PHP Code:
<?php
/*
Let's say we have an URL like http://www.domain.com/index.php?something=value
To get this we need to use the HTTP GET array like so:
*/
$something = $_GET['something'];
echo $something;
// Or POST (if preceded by a method="post" in the HTML form tag)
$something = $_POST['something'];
echo $something;
?>
I'd do something like:
PHP Code:
<?php
$price = $_GET['price'];
echo "<input type=\"text\" name=\"price\" value=\"$price\" />";
?>