Set a variable to = a text input
Posted: Fri Oct 24, 2008 11:48 am
I have a text field named imagedel
i want
$myfile = 'imagedel'
what is the proper coding for that?
i want
$myfile = 'imagedel'
Code: Select all
<form name="form1" method="post" action="delete.php">
<p>Delete Image?</p>
<p>
<input name="imagedel" type="text" value="<?php echo $pic; ?>" size="25" />
</p>
<p>
<input type="submit" value="Delete" />
</p>
</form>
Code: Select all
<?php
$myfile = 'imagedel';
unlink($myfile);
?>