<FORM NAME="searchform">The form will look like this:
<INPUT TYPE="text" NAME="searchstring">
<INPUT TYPE="button" VALUE="Go!" onClick="processForm();">
</FORM>
<SCRIPT language="JavaScript1.1">
function processForm() //Processes search form
{//Get the text entered into the text box}
value_of_text_box=document.searchform.searchstring.value;//If no text was entered
if (value_of_text_box=="")//You can change the contents of text boxes
document.searchform.searchstring.value="new text";//And display the result
alert("You typed "+value_of_text_box);
</SCRIPT>
<FORM NAME="searchform" ACTION="form_processing.php3" METHOD="get">The file form_processing.php3 will be loaded as soon as the user clicks Go!, and the form's variables can be directly referred to:
<INPUT TYPE="text" NAME="searchstring">
<INPUT TYPE="submit" VALUE="Go!">
</FORM>
<?php
if($searchform_searchstring=="forms")
echo "My forms page - click here";
?>
Note that an underscore is used to obtain object proprties - this is a conversion done by PHP, to avoid gettingconfused with the . string concatenation operator.
If you set the form's action to PUT, and set the action to a CGI script on your server, the form data will be sent to this script for processing. Look up information on Perl, as a starting point.