like for example

I click this link
http://www.google.com/#hl=en&source=hp&q=test
this automatically submits "test" to google

how can I make a link that automatically submits "test" to my script?
the script may need to be adjusted to allow this, and I am not sure what I need in my url to actually make it work.

here is the code to the script
Code:
<?php
        // Check if the user submitted this form
        if (isset($_POST["submitwrite"])) {
 echo $_POST['usersname'];
                // Open the file in write mode
                $handle = fopen("writetest.txt","a+"); 
                
                // If successful
                if ($handle) {
                        // Write to that handle the username submitted in the form and the date
                        fwrite($handle,$_POST["usersname"] . " - " . date("Y-m-d"));
                        
                        // Close the file
                        fclose($handle);
                }
        }
?>
                

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang = "en" dir="ltr">
<head>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<title>Submit example</title>
</head>
<body>

<!-- Notice how the form is submitting to itself -->

<form method="POST" action="test.php" name="form1" id="form1">
Name: <input type="text" name="usersname"/><br/>
<input type="submit" value="Write" name="submitwrite"/>
</form>

</body>

</html>