beginnerz
01-04-2006, 09:27 PM
<form name='form' method='post' action='<?php echo $_SERVER['PHP_SELF']; ?>' enctype="multipart/form-data">
<?
if(isset($_POST['submit'])){
echo "yes";
}else{
echo "no";
}
?>
<input type="file" name="txtPhotograph" size="6"
value="<?php echo $photo; ?>">
<input type = "submit" name="submit" value="submit"></form>
for this simple php, when i click submit, the address in the text field will disappear . is there a way to keep the address even i click submit?
<?
if(isset($_POST['submit'])){
echo "yes";
}else{
echo "no";
}
?>
<input type="file" name="txtPhotograph" size="6"
value="<?php echo $photo; ?>">
<input type = "submit" name="submit" value="submit"></form>
for this simple php, when i click submit, the address in the text field will disappear . is there a way to keep the address even i click submit?