Topic: need help with forms and variables
hello everyone, I was wondering if anyone can help me out.....I want to be able to set a variable as a value of one of my forms.....here is my code but it doesn't work
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Untitled Document</title>
</head>
<form action="<?php $_SERVER['PHP_SELF']; ?>" name="test">
send to:<input type="text" name="send_to" value="<?php echo $monster; ?>" />
<input type="submit" value="submit" />
</form>
<?php
$test = $_POST['test'];
if(isset($test)){
$monster = "testing";
}
?>
i want the value for $monster to be inside my text box by the name of "send_to"
if you have any ideas on how i can do this, please help me out. thanks:D

